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 pitrou
Recipients irmen, pitrou
Date 2008-05-24.22:20:58
SpamBayes Score 0.0072345627
Marked as misclassified No
Message-id <1211667715.16.0.282806892865.issue2871@psf.upfronthosting.co.za>
In-reply-to
Content
Well, it's true that get_ident() will always give you a reliable number
while currentThread() can play dirty games on you at shutdown. The thing
is the Thread object is dereferenced before the OS thread actually
terminates, so it may be that a Python callback is called by some C code
in those last moments and gets the wrong answer from currentThread()
(because currentThread() returns a new dummy thread when it can't find a
Thread object corresponding to the get_ident() value).

So finally your request sounds quite reasonable :-)
History
Date User Action Args
2008-05-24 22:21:58pitrousetspambayes_score: 0.00723456 -> 0.0072345627
recipients: + pitrou, irmen
2008-05-24 22:21:55pitrousetspambayes_score: 0.00723456 -> 0.00723456
messageid: <1211667715.16.0.282806892865.issue2871@psf.upfronthosting.co.za>
2008-05-24 22:21:53pitroulinkissue2871 messages
2008-05-24 22:21:48pitroucreate