Skip to content

added __add__ method to collections.deque - #2949

Merged
DimitrisJim merged 1 commit into
RustPython:mainfrom
stromberger:main
Aug 26, 2021
Merged

DimitrisJim merged 1 commit into
RustPython:mainfrom
stromberger:main

Conversation

@stromberger

Copy link
Copy Markdown
Contributor

resolve #2835

add deque.__add__ method

@youknowone

Copy link
Copy Markdown
Member

@eldpswp99 would you review this PR?

@eldpswp99 eldpswp99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we have extend function of PyDeque, we can use this. This has length check logic, the code can be more clear.

Comment thread vm/src/stdlib/collections.rs Resolved
@DimitrisJim
DimitrisJim self-requested a review August 24, 2021 03:44
Comment thread vm/src/stdlib/collections.rs Resolved
@DimitrisJim

Copy link
Copy Markdown
Member

Thanks for updating this, could you resolve the conflicts that have come up?

@DimitrisJim
DimitrisJim dismissed their stale review August 25, 2021 12:13

Review addressed.

@DimitrisJim DimitrisJim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. not sure why the option to run the actions isn't showing for me though.

@fanninpm

Copy link
Copy Markdown
Contributor

not sure why the option to run the actions isn't showing for me though.

Is it because of the merge commit? Perhaps a rebase is needed.

@DimitrisJim
DimitrisJim merged commit 9203cb3 into RustPython:main Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

collections.deque doesn't have __add__ method

5 participants