Files
cpython/Doc/c-api
Gregory P. Smith 5717518fb3 gh-146219: Document reusing a thread state across repeated foreign-thread calls (GH-146221)
* Document reusing a thread state across repeated foreign-thread calls

Add a subsection under "Non-Python created threads" explaining the
performance cost of creating/destroying a PyThreadState on every
Ensure/Release cycle and showing how to keep one alive for the
thread's lifetime instead.

* add a comma

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

---------

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2026-06-29 17:05:02 -07:00
..
2026-03-10 14:31:15 +02:00
2026-05-07 16:26:31 +03:00