[issue32528] Change base class for futures.CancelledError
Andrew Svetlov
report at bugs.python.org
Thu Jan 11 04:43:18 EST 2018
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
Inheritance from Exception is very annoying, I saw issues with unexpected suppressing CancelledError many times.
Even experienced people constantly forget to add a separate `except asyncio.CancelledError` clause everywhere.
But proposed change is backward incompatible, sure.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32528>
_______________________________________
More information about the Python-bugs-list
mailing list