-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
gh-141004: Document missing generator APIs #141409
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
Conversation
vstinner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I just have minor suggestions.
| .. c:function:: int PyAsyncGen_CheckExact(PyObject *op) | ||
| Return true if *op* is an asynchronous generator object, false otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Return true if *op* is an asynchronous generator object, false otherwise. | |
| Return non-zero if *op* is an asynchronous generator object, zero otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We say "true" and "false" in this file (see PyGen_Check* above), and I'd rather be consistent.
Co-authored-by: Victor Stinner <vstinner@python.org>
|
Thanks @ZeroIntensity for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
(cherry picked from commit 2da7ecc) Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
|
GH-141789 is a backport of this pull request to the 3.14 branch. |
(cherry picked from commit 2da7ecc) Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
|
GH-141790 is a backport of this pull request to the 3.13 branch. |
I didn't do
PyAsyncGenASend_CheckExactin this one because I think that should just be deprecated.📚 Documentation preview 📚: https://cpython-previews--141409.org.readthedocs.build/en/141409/c-api/gen.html#c.PyGen_GetCode