FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-146063: Add PyObject_CallFinalizerFromDealloc() to the limited C API by vstinner · Pull Request #146172 · python/cpython · GitHub

Repository navigation

gh-146063: Add PyObject_CallFinalizerFromDealloc() to the limited C API - #146172

Merged
vstinner merged 3 commits into
python:mainfrom
vstinner:call_finalizer
May 4, 2026
Merged

vstinner merged 3 commits into
python:mainfrom
vstinner:call_finalizer

Conversation

vstinner commented Mar 19, 2026 •
edited
Loading

Copy link
Copy Markdown
Member

Add PyObject_CallFinalizer() and PyObject_CallFinalizerFromDealloc()
to the limited C API.

Add a test on PyObject_CallFinalizer().

Copy link
Copy Markdown
Member Author

My PR lacks PyObject_CallFinalizerFromDealloc() test which is more complicated to test.

vstinner changed the title gh-146063: Add PyObject_CallFinalizer() to the limited C API gh-146063: Add PyObject_CallFinalizerFromDealloc() to the limited C API Mar 20, 2026

Copy link
Copy Markdown
Member Author

I updated the PR to only add PyObject_CallFinalizerFromDealloc() to the limited C API (leave PyObject_CallFinalizer() in the non-limited C API).

Copy link
Copy Markdown
Contributor

Gentle ping here - it'd be great to get this into 3.15 before beta freeze if possible! Thanks :)

encukou commented Apr 15, 2026

Copy link
Copy Markdown
Member

WG vote: capi-workgroup/decisions#104

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #32525579 | 📁 Comparing 40fd740 against main (1504bd6)

  🔍 Preview build  

4 files changed
± c-api/lifecycle.html
± c-api/stable.html
± whatsnew/3.15.html
± whatsnew/changelog.html

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL