We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fe5619 commit a57095cCopy full SHA for a57095c
1 file changed
Doc/c-api/threads.rst
@@ -249,7 +249,7 @@ Reusing a thread state across repeated calls
249
250
Creating and destroying a :c:type:`PyThreadState` is not free, and is more
251
expensive on a :term:`free-threaded build`. A foreign thread that calls into
252
-the interpreter many times -- for example a worker thread in a native thread
+the interpreter many times -- for example, a worker thread in a native thread
253
pool -- should avoid creating a fresh thread state on every entry and
254
destroying it on every exit. Instead, set up one thread state when the thread
255
starts (or lazily on its first call into Python), attach and detach it around
0 commit comments