Skip to content

collections.deque does not have __rmul__ method #2834

Closed

Description

@sobolevn

Feature

CPython:

>>> from collections import deque
>>> deque((1, 2)).__rmul__(2)
deque([1, 2, 1, 2])

RustPython:

>>>>> from collections import deque
>>>>> deque((1, 2)).__rmul__(2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'deque' object has no attribute '__rmul__'

Activity

  1. DimitrisJim commented on Aug 10, 2021

    @DimitrisJim
    Member

    huh, I missed this in #2812. I'll update the issue there and close this up to keep them all in one spot. Take a look over at it to see I haven't missed anything else (pretty sure I got the rest of them).

    Edit: read up on task lists, separate issues is part of their usage hah

  2. sobolevn commented on Aug 10, 2021

    @sobolevn
    ContributorAuthor

    I am working on this issue right now 🙂
    I will submit a PR later tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions