Author vstinner
Recipients benjamin.peterson, meador.inge, neologix, skrah, vstinner
Date 2011-09-13.17:55:49
SpamBayes Score 6.62232e-05
Marked as misclassified No
Message-id <>
> However, I don't think we should/could add this to the posix module: 
> it expects a pthread_t instead of a PID, to which we don't have access.

We already have such function:

I added threading.get_ident() to easily get the thread identifier. In Python < 3.3, you can use threading.current_thread().ident.

It's not documented, but if you pass a random integer, signal.pthread_kill() does crash.
Date User Action Args
2011-09-13 17:55:50vstinnersetrecipients: + vstinner, benjamin.peterson, skrah, meador.inge, neologix
2011-09-13 17:55:50vstinnersetmessageid: <>
2011-09-13 17:55:49vstinnerlinkissue12936 messages
2011-09-13 17:55:49vstinnercreate