The Wayback Machine - https://web.archive.org/web/20210823223734/https://github.com/RustPython/RustPython/issues/2835
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collections.deque doesn't have __add__ method #2835

Open
Tracked in #2812
DimitrisJim opened this issue Aug 10, 2021 · 3 comments · May be fixed by #2949
Open
Tracked in #2812

collections.deque doesn't have __add__ method #2835

DimitrisJim opened this issue Aug 10, 2021 · 3 comments · May be fixed by #2949
Assignees

Comments

@DimitrisJim
Copy link
Member

@DimitrisJim DimitrisJim commented Aug 10, 2021

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'
@DimitrisJim DimitrisJim changed the title deque.__add__ collections.deque doesn't have __add__ method Aug 10, 2021
@caskercasker
Copy link

@caskercasker caskercasker commented Aug 11, 2021

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

@DimitrisJim
Copy link
Member Author

@DimitrisJim DimitrisJim commented Aug 18, 2021

bump @caskercasker , any update on this?

@stromberger stromberger linked a pull request that will close this issue Aug 23, 2021
@stromberger
Copy link

@stromberger stromberger commented Aug 23, 2021

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants