[issue22970] Cancelling wait() after notification leaves Condition in an inconsistent state

STINNER Victor report at bugs.python.org
Thu Jan 8 23:46:09 CET 2015


STINNER Victor added the comment:

I don't like the idea of ignoring exceptions (CancelledError). An option may be to store the latest exception and reraise it when the condition is acquired.

I'm not sure that it's safe or correct to "retry" to acquire the condition.

I don't know what I should think about this issue. I don't see any obvious and simple fix, but I agree that inconsistencies in lock primitives is a severe issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22970>
_______________________________________


More information about the Python-bugs-list mailing list