This seems like a bug - main thread has None ident???

March 31, 2009
8:11 p.m.
Looking for some quick feedback on this. I've bumped into what looks like a bug in the threading module. From the interpreter prompt: >>> import threading >>> threading.currentThread() <_MainThread(MainThread, started)> >>> print threading.currentThread().ident None The ident attribute is documented as being a number unless the thread has yet to be started. Shouldn't the main thread's ident attribute *always* be non-None? Clearly, it appears the main thread has been started. Am I missing something obvious or have I hit a bug? This is a fully updated 2.7a0 build, trunk:70878M. Skip
5830
Age (days ago)
5830
Last active (days ago)
0 comments
1 participants
participants (1)
-
skip@pobox.com