-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section #109751
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note this entry was duplicated; I've only kept one of them
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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_tag
and immutable types / mutable bases to the C-API section📚 Documentation preview 📚: https://cpython-previews--109751.org.readthedocs.build/