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 rhettinger
Recipients jcea, neologix, pitrou, rhettinger, tim.peters
Date 2013-03-10.06:35:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362897345.56.0.951698048186.issue17385@psf.upfronthosting.co.za>
In-reply-to
Content
Tim, do you remember why Condition.notify() went to great lengths to act as if the lock could be released after the check for self._is_owned()?  

It loops over its own a copy of __waiters, and the __waiters.remove(waiter) code is wrapped in a try/except to detect a situation where __waiters mutated during the release-loop.  I'm presuming that defensive programming was put there for a reason.
History
Date User Action Args
2013-03-10 06:35:45rhettingersetrecipients: + rhettinger, tim.peters, jcea, pitrou, neologix
2013-03-10 06:35:45rhettingersetmessageid: <1362897345.56.0.951698048186.issue17385@psf.upfronthosting.co.za>
2013-03-10 06:35:45rhettingerlinkissue17385 messages
2013-03-10 06:35:45rhettingercreate