[issue32528] Change base class for futures.CancelledError
JustAnotherArchivist
report at bugs.python.org
Fri Jul 10 23:14:16 EDT 2020
JustAnotherArchivist <justanotherarchivist at riseup.net> added the comment:
As another datapoint, this also broke some of my code on 3.8 because I was using `concurrent.futures.CancelledError` rather than `asyncio.CancelledError` to handle cancelled futures. And I'm certainly not the only one to have done this given that it's mentioned in at least two Stack Overflow answers: https://stackoverflow.com/a/38655063 and https://stackoverflow.com/a/36277556
While I understand the rationale behind this change, it would've been good to include this inheritance detail in the 3.8 release notes.
----------
nosy: +JustAnotherArchivist
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32528>
_______________________________________
More information about the Python-bugs-list
mailing list