Skip to content

Add combinations.__reduce__ #4272

Merged
youknowone merged 2 commits into
RustPython:mainfrom
mumallaeng:iter_combi_reduce
Nov 18, 2022
Merged

Add combinations.__reduce__ #4272
youknowone merged 2 commits into
RustPython:mainfrom
mumallaeng:iter_combi_reduce

Conversation

@mumallaeng

Copy link
Copy Markdown
Contributor

Add combinations.__reduce__ #3611 and fix next

@fanninpm

fanninpm commented Nov 9, 2022

Copy link
Copy Markdown
Contributor

See also #3931

@mumallaeng mumallaeng marked this pull request as ready for review November 9, 2022 21:03
@mumallaeng

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Member

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

@mumallaeng

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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