Skip to content

GH-100108: Add async generators best practices section#141885

Merged
kumaraditya303 merged 14 commits intopython:mainfrom
sergey-miryanov:100108-async-gen-docs
Mar 21, 2026
Merged

GH-100108: Add async generators best practices section#141885
kumaraditya303 merged 14 commits intopython:mainfrom
sergey-miryanov:100108-async-gen-docs

Conversation

@sergey-miryanov
Copy link
Contributor

@sergey-miryanov sergey-miryanov commented Nov 23, 2025

Added section about best practices for async generators.


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

@sergey-miryanov
Copy link
Contributor Author

@kumaraditya303 Could you please take a look?

sergey-miryanov and others added 2 commits November 24, 2025 10:32
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@kumaraditya303 kumaraditya303 self-assigned this Nov 24, 2025
@kumaraditya303
Copy link
Contributor

I would appreciate a review from @willingc and @gvanrossum on this.

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

It's great to add these explicitly to the docs!

I hope you don't mind that I have tried to correct your English grammar somewhat (mostly adding or subtracting "the").

@bedevere-app
Copy link

bedevere-app bot commented Nov 26, 2025

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@gvanrossum
Copy link
Member

I'd also love to get @willingc's view on how to make this section have the right tone so as not to scare beginners away.

@sergey-miryanov
Copy link
Contributor Author

I hope you don't mind that I have tried to correct your English grammar somewhat (mostly adding or subtracting "the").

Thank you! I really appreciate it!

@sergey-miryanov sergey-miryanov marked this pull request as draft November 26, 2025 21:41
@bedevere-app
Copy link

bedevere-app bot commented Feb 25, 2026

Thanks for making the requested changes!

@gvanrossum: please review the changes made to this pull request.

@kumaraditya303 kumaraditya303 enabled auto-merge (squash) March 21, 2026 11:57
@kumaraditya303 kumaraditya303 merged commit 897fa23 into python:main Mar 21, 2026
28 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Mar 21, 2026
@miss-islington-app
Copy link

Thanks @sergey-miryanov for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 21, 2026
…H-141885)

(cherry picked from commit 897fa23)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 21, 2026
…H-141885)

(cherry picked from commit 897fa23)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@bedevere-app
Copy link

bedevere-app bot commented Mar 21, 2026

GH-146252 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Mar 21, 2026
@bedevere-app
Copy link

bedevere-app bot commented Mar 21, 2026

GH-146253 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Mar 21, 2026
kumaraditya303 added a commit that referenced this pull request Mar 21, 2026
) (#146252)

GH-100108: Add async generators best practices section (GH-141885)
(cherry picked from commit 897fa23)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
kumaraditya303 added a commit that referenced this pull request Mar 21, 2026
) (#146253)

GH-100108: Add async generators best practices section (GH-141885)
(cherry picked from commit 897fa23)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@sergey-miryanov
Copy link
Contributor Author

Thanks!

@sergey-miryanov sergey-miryanov deleted the 100108-async-gen-docs branch March 21, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news topic-asyncio

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants