[issue46771] Add some form of cancel scopes
Andrew Svetlov
report at bugs.python.org
Tue Feb 22 19:32:01 EST 2022
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
If some code is used together with timeout() and this code calls `.cancel()` but forgot about `.uncancel()` in try/except/finally -- timeout() never raises TimeoutError.
Should we care? The missing `.uncancel()` call is hard to detect by the runtime and static checkers.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46771>
_______________________________________
More information about the Python-bugs-list
mailing list