gh-141004: Document missing built-in iterator types in the C API#141006
gh-141004: Document missing built-in iterator types in the C API#141006ZeroIntensity merged 8 commits intopython:mainfrom
Conversation
|
I think all of the type objects should be soft-deprecated. They're not very useful, and making them public API makes it hard to convert them to heap types. Also, |
|
All the iterator type objects, or all the type objects in #141004?
Will do. |
encukou
left a comment
There was a problem hiding this comment.
Looks good!
Two things to consider, but if you like the current PR I'm happy with it too:
- a table like in https://docs.python.org/3/c-api/code.html#code-object-flags
- merging “Builtin Iterator Types” with the next section, as “Other Iterator Types”
|
I like the table idea a lot. I went with that. |
|
Thanks @ZeroIntensity for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…nGH-141006) Adds documentation for each of the following: - PyEnum_Type - PyFilter_Type - PyMap_Type - PyReversed_Type - PyZip_Type In addition, PyRange_Type and PyRange_Check are also documented. (cherry picked from commit 1697cb5) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
|
GH-141134 is a backport of this pull request to the 3.14 branch. |
…nGH-141006) Adds documentation for each of the following: - PyEnum_Type - PyFilter_Type - PyMap_Type - PyReversed_Type - PyZip_Type In addition, PyRange_Type and PyRange_Check are also documented. (cherry picked from commit 1697cb5) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
|
GH-141135 is a backport of this pull request to the 3.13 branch. |
…41006) (GH-141134) gh-141004: Document built-in iterator types in the C API (GH-141006) Adds documentation for each of the following: - PyEnum_Type - PyFilter_Type - PyMap_Type - PyReversed_Type - PyZip_Type In addition, PyRange_Type and PyRange_Check are also documented. (cherry picked from commit 1697cb5) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
…41006) (GH-141135) gh-141004: Document built-in iterator types in the C API (GH-141006) Adds documentation for each of the following: - PyEnum_Type - PyFilter_Type - PyMap_Type - PyReversed_Type - PyZip_Type In addition, PyRange_Type and PyRange_Check are also documented. (cherry picked from commit 1697cb5) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
…nGH-141006) Adds documentation for each of the following: - PyEnum_Type - PyFilter_Type - PyMap_Type - PyReversed_Type - PyZip_Type In addition, PyRange_Type and PyRange_Check are also documented.
📚 Documentation preview 📚: https://cpython-previews--141006.org.readthedocs.build/en/141006/c-api/iterator.html