Message373166
FYI this has just bitten me after updating my OS to one that ships Python 3.8. It is code that was written with asyncio cancellation in mind and which expected CancelledError to be caught with "except Exception" (the exception block unwound incomplete operations before re-raising the exception).
It's obviously too late to do anything about Python 3.8, but I'm mentioning this as a data point in support of having a deprecation period if similar changes are made in future.
On the plus side, while fixing up my code and checking all instances of "except Exception" I found some places where this change did fix latent cancellation bugs. So I'm happy with the change, just a little unhappy that it came as a surprise. |
|
Date |
User |
Action |
Args |
2020-07-06 19:56:10 | bmerry | set | recipients:
+ bmerry, gvanrossum, gustavo, asvetlov, chris.jerdonek, socketpair, Dima.Tisnek, yselivanov, achimnol |
2020-07-06 19:56:10 | bmerry | set | messageid: <1594065370.61.0.780677906375.issue32528@roundup.psfhosted.org> |
2020-07-06 19:56:10 | bmerry | link | issue32528 messages |
2020-07-06 19:56:10 | bmerry | create | |
|