Skip to content

Add combinations.__reduce__ #4272

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

Merged
merged 2 commits into from
Nov 18, 2022
Merged

Conversation

yonmilk
Copy link
Contributor

@yonmilk yonmilk commented Nov 9, 2022

Add combinations.__reduce__ #3611 and fix next

@fanninpm
Copy link
Contributor

fanninpm commented Nov 9, 2022

See also #3931

@yonmilk yonmilk marked this pull request as ready for review November 9, 2022 21:03
@yonmilk
Copy link
Contributor Author

yonmilk commented Nov 11, 2022

Sorry. I didn‘t know how to use github cli. But now that I know how to use it, I merged the original PR!

Add result in struct PyItertoolsCombinations
@DimitrisJim
Copy link
Member

Hm, @oow214 have you coordinated with @seryoungshim17 on this? I'm unsure which of the PRs to review.

@yonmilk
Copy link
Contributor Author

yonmilk commented Nov 12, 2022

I wrote the code after looking at the cpython code https://github.com/python/cpython/blob/main/Modules/itertoolsmodule.c#L2937-#L2965.

@youknowone youknowone merged commit 17944d3 into RustPython:main Nov 18, 2022
@youknowone
Copy link
Member

Thank you!

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.

5 participants