Message402532
I am not sure that it can be solved at Python level.
Possible solutions:
* Add a Lock method (or just a builtin function) which acquires and immediately releases the lock, without possibility to interrupt.
if lock._blink(block, timeout):
self._stop()
* Add a context manager which suppresses keyboard interruption.
with suppress_interrupt():
if not lock._blink(block, timeout):
return
self._stop() |
|
Date |
User |
Action |
Args |
2021-09-23 21:39:41 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, pablogsal |
2021-09-23 21:39:41 | serhiy.storchaka | set | messageid: <1632433181.18.0.129692829919.issue45274@roundup.psfhosted.org> |
2021-09-23 21:39:41 | serhiy.storchaka | link | issue45274 messages |
2021-09-23 21:39:41 | serhiy.storchaka | create | |
|