8000 GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section by AA-Turner · Pull Request #109751 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section #109751

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

Merged
merged 9 commits into from
Sep 25, 2023
Prev Previous commit
Next Next commit
Suggest alternative for _PyErr_ChainExceptions
  • Loading branch information
AA-Turner committed Sep 22, 2023
commit 4502df21d019f1913b223cb61209eafef9339f46
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2188,7 +2188,7 @@ although there is currently no date scheduled for their removal.
* :c:func:`!PyUnicode_AsEncodedUnicode`
* :c:func:`PyUnicode_READY`: unneeded since Python 3.12
* :c:func:`!PyErr_Display`: use :c:func:`PyErr_DisplayException`
* :c:func:`!_PyErr_ChainExceptions`
* :c:func:`!_PyErr_ChainExceptions`: use ``_PyErr_ChainExceptions1``
Copy link
Member

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.

Copy link
Member Author

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.

* :c:member:`!PyBytesObject.ob_shash` member:
call :c:func:`PyObject_Hash` instead
* :c:member:`!PyDictObject.ma_version_tag` member
Expand Down
0