bug in threading

Aahz Maruch aahz at panix.com
Thu Mar 22 11:29:27 EST 2001


[posted and e-mailed]

Please send this as a bug report and patch to
http://python.sourceforge.net

In article <99d2oc$25um$1 at gavrilo.mtu.ru>, Oleg Orlov <orlov at diasoft.ru> wrote:
>My problem is: Condition.wait() is not protected against
>KeyboardInterrupt. Fix is below.
>
>Regards,
>Oleg.
>
>-----------------------------
>#python 2.0, threading.py:
>
>...
>class _Condition(_Verbose):
>...
>    def wait(self, timeout=None):
>...
>        saved_state = self._release_save()
># line to be inserted
>        try:
>...
># line to be inserted
>        finally:
>            self._acquire_restore(saved_state)
>
>
>
>


-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het Pythonista   http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"I won't accept a model of the universe in which free will, omniscient
gods, and atheism are simultaneously true."  -- M



More information about the Python-list mailing list