GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update tp_finalize example to use PyErr_GetRaisedException · Issue #131117 · python/cpython

Update tp_finalize example to use PyErr_GetRaisedException #131117

New issue
Copy link
New issue
Copy link
Closed
Closed
Update tp_finalize example to use PyErr_GetRaisedException#131117
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir

Description

@cmaloney
cmaloney
opened on Mar 11, 2025
Issue body actions

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

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

Activity

  1. cmaloney
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Mar 11, 2025
  2. github-project-automation
    added this to docs issueson Mar 11, 2025
  3. github-project-automation
    moved this to Todo in docs issueson Mar 11, 2025
  4. cmaloney
    added a commit that references this issue on Mar 11, 2025

    pythongh-131117: Use PyErr_GetRaisedException in tp_finalize doc

    1f53dc3
  5. cmaloney
    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
  6. vstinner
    added a commit that references this issue on Mar 19, 2025

    gh-131117: Update tp_finalize example to use PyErr_GetRaisedException (…

    a4832f6
  7. miss-islington
    added a commit that references this issue on Mar 19, 2025

    pythongh-131117: Update tp_finalize example to use PyErr_GetRaisedExc…

    b21543b
  8. vstinner
    added a commit that references this issue on Mar 19, 2025

    [3.13] gh-131117: Update tp_finalize example to use PyErr_GetRaisedEx…

    69db2eb
  9. cmaloney
    closed this as completedon Mar 20, 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 dirDocumentation in the Doc dir

    Projects

    • docs issues
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.