[issue32528] Change base class for futures.CancelledError

Andrew Svetlov report at bugs.python.org
Thu Jan 11 04:48:19 EST 2018


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

Honestly I have no strong opinion.

Correct code should not be affected, if somebody want to handle task cancellation explicitly -- he already have `except CancelledError` in his code.

What are use cases for intentional catching Exception for task cancellation prevention?

Could we add a warning for this case without base exception class change? I don't see how to do it but maybe somebody has an idea?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32528>
_______________________________________


More information about the Python-bugs-list mailing list