PyThreadState.thread_id

Undocumented in source.
struct PyThreadState
C_long thread_id;

Meta