Skip to content

collections.deque doesn't have __add__ method #2835

Closed

Description

@DimitrisJim

Feature

CPython:

>>> from collections import deque
>>> deque(range(3)) + deque(range(3))
deque([0, 1, 2, 0, 1, 2])

RustPython:

>>>>> from collections import deque
>>>>> deque(range(3)) + deque(range(3))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: '+' not supported between instances of 'deque' and 'deque'

Activity

  1. changed the title [-]`deque.__add__`[/-] [+]`collections.deque` doesn't have `__add__` method[/+] on Aug 10, 2021
  2. caskercasker commented on Aug 11, 2021

    @caskercasker

    Hello @DimitrisJim I'd like to look into this issue. can you assign me?

  3. DimitrisJim commented on Aug 18, 2021

    @DimitrisJim
    MemberAuthor

    bump @caskercasker , any update on this?

  4. stromberger commented on Aug 23, 2021

    @stromberger
    Contributor

    Hey there, I tried to implement the __add__ method in #2949. This is my first issue so I appreciate every feedback that I can get.

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