Skip to content

Update tp_finalize example to use PyErr_GetRaisedException #131117

Description

@cmaloney

Documentation

The tp_finalize C API doc currently uses the older PyErr_Fetch + PyErr_Restore API to stash the current exception in its sample implementation. That API was deprecated in 3.12.

Update the example to use the suggested replacement PyErr_GetRaisedException and PyErr_SetRaisedException

Linked PRs

Activity

  1. added a commit that references this issue on Mar 11, 2025
  2. changed the title [-]Update tp_finalize example to use non-deprecated API PyErr_GetRaisedException[/-] [+]Update tp_finalize example to use PyErr_GetRaisedException[/+] on Mar 12, 2025
  3. added a commit that references this issue on Mar 19, 2025
  4. added a commit that references this issue on Mar 19, 2025
  5. added a commit that references this issue on Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions