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 yselivanov
Recipients achimnol, asvetlov, gustavo, gvanrossum, socketpair, yselivanov
Date 2018-09-24.17:47:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537811253.74.0.956365154283.issue32528@psf.upfronthosting.co.za>
In-reply-to
Content
> Closing this issue as I, personally, don't see this happening and there's no point in keeping it open.

Actually, Andrew and I changed our opinion on this, so I'm re-opening the issue.

After visiting three conferences this summer and talking to asyncio users, it seems that this is a very serious pitfall.  At least 8 different people shared stories about really hard to debug problems caused by "except Exception" code blocking cancellation.

I now think we should fix this and make CancelledError a BaseException.  Doing that isn't as straightforward as it seems as we have to first fix how asyncio handles BaseExceptions (my next ToDo).
History
Date User Action Args
2018-09-24 17:47:33yselivanovsetrecipients: + yselivanov, gvanrossum, gustavo, asvetlov, socketpair, achimnol
2018-09-24 17:47:33yselivanovsetmessageid: <1537811253.74.0.956365154283.issue32528@psf.upfronthosting.co.za>
2018-09-24 17:47:33yselivanovlinkissue32528 messages
2018-09-24 17:47:33yselivanovcreate