GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section#109751
GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section#109751hugovk merged 9 commits intopython:mainfrom
Conversation
| * Creating :c:data:`immutable types <Py_TPFLAGS_IMMUTABLETYPE>` with mutable | ||
| bases using the C API (:gh:`95388`) |
There was a problem hiding this comment.
Note this entry was duplicated; I've only kept one of them
vstinner
left a comment
There was a problem hiding this comment.
LGTM.
Thanks for going through all deprecated C API! I didn't realize that this list was so long!
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
| * :c:func:`!PyUnicode_AsEncodedUnicode`: use c:func:`PyCodec_Encode` | ||
| * :c:func:`PyUnicode_READY`: unneeded since Python 3.12 | ||
| * :c:func:`!PyErr_Display`: use :c:func:`PyErr_DisplayException` | ||
| * :c:func:`!_PyErr_ChainExceptions`: use ``_PyErr_ChainExceptions1`` |
There was a problem hiding this comment.
I am not sure about this. It is an internal convenient function, and it can be removed or changed in incompatible way without warning.
There was a problem hiding this comment.
We're recommending a private replacement to a private function here, so I think it's fine. This isn't saying that readers should use the functions, just what the replacements for the deprecated versions are.
|
Thanks @AA-Turner for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…ions section (pythonGH-109751) (cherry picked from commit bccc1b7) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-109830 is a backport of this pull request to the 3.12 branch. |
|
Would you mind to copy the "Pending Removal xxx" sections of C API Changes to What's New In Python 3.13? (main branch) |
|
Done: #109843 A |
…tions section (GH-109751) (#109830) * GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section (GH-109751) (cherry picked from commit bccc1b7) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> * Remove the weakref get object functions --------- Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…ions section (python#109751) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…ions section (python#109751) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
ma_version_tagand immutable types / mutable bases to the C-API section📚 Documentation preview 📚: https://cpython-previews--109751.org.readthedocs.build/