Skip to content

gh-145559: Add PyUnstable_DumpTraceback() and PyUnstable_DumpTracebackThreads()#148145

Draft
alexmalyshev wants to merge 6 commits intopython:mainfrom
alexmalyshev:traceback
Draft

gh-145559: Add PyUnstable_DumpTraceback() and PyUnstable_DumpTracebackThreads()#148145
alexmalyshev wants to merge 6 commits intopython:mainfrom
alexmalyshev:traceback

Conversation

@alexmalyshev
Copy link
Copy Markdown
Contributor

@alexmalyshev alexmalyshev commented Apr 5, 2026

These functions stopped being exported in #107215. However, they are the only way to print a Python stacktrace safely from a signal handler, making them very useful for extensions. Re-export them.

Regenerated from #145560 due to a bad merge.


📚 Documentation preview 📚: https://un5ne6vdzex72u4zhzvdp280n516abk2g692ezmt7axdhn2g.julianrbryant.comadthedocs.build/

Public versions of _Py_DumpTraceback() and _Py_DumpTracebackThreads().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant