[issue27585] asyncio.Lock deadlock after cancellation

sss report at bugs.python.org
Thu Aug 4 05:33:34 EDT 2016


sss added the comment:

Yes, await asyncio.sleep(0) does fix it, but it would be weird if I'm supposed to put those all over my code. I made a new reproducer now that uses 2 threads in case it's not allowed to take the same lock twice from the same thread.

----------
Added file: http://bugs.python.org/file44007/lock2.py

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


More information about the Python-bugs-list mailing list