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 brett.cannon
Recipients
Date 2005-01-07.03:36:55
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=357491

Ah, I didn't notice that Semaphore uses a Condition lock which uses an 
RLock which calls currentThread before and gets a lock from 
thread.allocate_lock which probably uses an Event on Windows.  I also 
noticed that if __debug__ is set than the _note method uses it as well.

It looks like Thread.__block can't be called for a _DummyThread since 
the only places self.__block is used is in Thread.__stop (which is called 
in Thread.__bootstrap which is called by Thread.start which will raise an 
AssertionError since Thread.__started will be set to True thanks to 
_DummyThread.__init__) and in Thread.join which is overridden in 
_DummyThread.  So it looks like deleting the key should be safe in 
_DummyThread.__init__.

Probably wouldn't hurt to delete self.__stderr while we are at it since it 
never gets used either and thus is basically a ref leak.  Sound good to 
you, Tim?
History
Date User Action Args
2007-08-23 14:28:38adminlinkissue1089632 messages
2007-08-23 14:28:38admincreate