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 skip.montanaro
Recipients skip.montanaro
Date 2009-03-31.21:01:36
SpamBayes Score 5.164417e-09
Marked as misclassified No
Message-id <1238533298.48.0.429621534133.issue5632@psf.upfronthosting.co.za>
In-reply-to
Content
The main thread has an ident, but the threading module doesn't
recognize that fact.  I shouldn't have to "start" the main thread.

Example:

% python
Python 2.7a0 (trunk:70084, Feb 28 2009, 20:51:51) 
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import threading
>>> import thread
>>> print threading.currentThread(), threading.currentThread().ident, 
thread.get_ident()
<_MainThread(MainThread, started)> None -1602627808

% python3.1
Python 3.1a0 (py3k:70084M, Feb 28 2009, 20:46:48) 
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import threading  
>>> print (threading.current_thread(), 
threading.current_thread().ident)<_MainThread(MainThread, started)> None
History
Date User Action Args
2009-03-31 21:01:38skip.montanarosetrecipients: + skip.montanaro
2009-03-31 21:01:38skip.montanarosetmessageid: <1238533298.48.0.429621534133.issue5632@psf.upfronthosting.co.za>
2009-03-31 21:01:37skip.montanarolinkissue5632 messages
2009-03-31 21:01:36skip.montanarocreate