This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients fabioz, vstinner
Date 2020-03-13.13:46:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Maybe better would be the thread id so that the tstate structure is not needed there.

PyInterpreterState.tstate_head allows to iterate on all thread states, but I'm not aware of an API to get a PyThreadState from its identifier (tstate->id).


See also bpo-1021318: "PyThreadState_Next not thread safe".
Date User Action Args
2020-03-13 13:46:30vstinnersetrecipients: + vstinner, fabioz
2020-03-13 13:46:30vstinnersetmessageid: <>
2020-03-13 13:46:30vstinnerlinkissue35370 messages
2020-03-13 13:46:30vstinnercreate