Skip to content
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

[3.13] gh-131117: Update tp_finalize example to use PyErr_GetRaisedException (GH-131118) #131476

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Mar 19, 2025

The tp_finalize C API doc used PyErr_Fetch() and PyErr_Restore() in
its example code. That API was deprecated in 3.12.

Update to point to the suggested replacement function
PyErr_GetRaisedException() which has a sample usage.
(cherry picked from commit a4832f6)

Co-authored-by: Cody Maloney cmaloney@users.noreply.github.com


📚 Documentation preview 📚: https://cpython-previews--131476.org.readthedocs.build/

…eption (pythonGH-131118)

The tp_finalize C API doc used PyErr_Fetch() and PyErr_Restore() in
its example code. That API was deprecated in 3.12.

Update to point to the suggested replacement function
PyErr_GetRaisedException() which has a sample usage.
(cherry picked from commit a4832f6)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
@bedevere-app bedevere-app bot added docs Documentation in the Doc dir awaiting review labels Mar 19, 2025
@vstinner vstinner enabled auto-merge (squash) March 19, 2025 17:28
@vstinner vstinner merged commit 69db2eb into python:3.13 Mar 19, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants