Message84901
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 |
|
Date |
User |
Action |
Args |
2009-03-31 21:01:38 | skip.montanaro | set | recipients:
+ skip.montanaro |
2009-03-31 21:01:38 | skip.montanaro | set | messageid: <1238533298.48.0.429621534133.issue5632@psf.upfronthosting.co.za> |
2009-03-31 21:01:37 | skip.montanaro | link | issue5632 messages |
2009-03-31 21:01:36 | skip.montanaro | create | |
|