Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-124397: Add itertools.serialize (name tbd)#133272

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
eendebakpt wants to merge2 commits intopython:main
base:main
Choose a base branch
Loading
fromeendebakpt:itertools_serialize

Conversation

eendebakpt
Copy link
Contributor

@eendebakpteendebakpt commentedMay 1, 2025
edited
Loading

Additertools.serialize to make a non-threadsafe iterator thread-safe.

  • Bikeshedding on the naming (thread at discuss.python.org)
  • Update documentation
  • Add method to make generator function thread-safe (probably a followup PR)

📚 Documentation preview 📚:https://cpython-previews--133272.org.readthedocs.build/

@rhettinger
Copy link
Contributor

Do you think this belongs initertools or inthreading? I could see a case for either one.

@rhettingerrhettinger removed their request for reviewMay 1, 2025 21:18
@eendebakpt
Copy link
ContributorAuthor

Do you think this belongs initertools or inthreading? I could see a case for either one.

I see your point. Serhey also mentionedthreading as a better option on discourse. I think I would prefer moving to thethreading module, but also add link to the new method in the itertools documentation.

@eendebakpt
Copy link
ContributorAuthor

Closing in favor of#133908

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@eendebakpt@rhettinger

[8]ページ先頭

©2009-2025 Movatter.jp