Skip to content

Update tp_finalize example to use PyErr_GetRaisedException #131117

Closed
@cmaloney

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions