This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bmerry
Recipients Dima.Tisnek, achimnol, asvetlov, bmerry, chris.jerdonek, gustavo, gvanrossum, socketpair, yselivanov
Date 2020-07-06.19:56:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594065370.61.0.780677906375.issue32528@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-07-06 19:56:10bmerrysetrecipients: + bmerry, gvanrossum, gustavo, asvetlov, chris.jerdonek, socketpair, Dima.Tisnek, yselivanov, achimnol
2020-07-06 19:56:10bmerrysetmessageid: <1594065370.61.0.780677906375.issue32528@roundup.psfhosted.org>
2020-07-06 19:56:10bmerrylinkissue32528 messages
2020-07-06 19:56:10bmerrycreate