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 gvanrossum
Recipients ajoino, alex.gronholm, asvetlov, gvanrossum, iritkatriel, jab, njs, tinchester, yselivanov
Date 2022-02-17.01:44:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645062256.86.0.101988894746.issue46771@roundup.psfhosted.org>
In-reply-to
Content
FWIW it looks like this part of taskgroups is vulnerable to a similar race:

https://github.com/python/cpython/blob/6f1efd19a70839d480e4b1fcd9fecd3a8725824b/Lib/asyncio/taskgroups.py#L212-L232

Deleting the two lines I mentioned won't fix it here; a hack using the cancel message might be more appropriate. (I note that there is no documented way to retrieve the cancel message; you're supposed to access the protected `_cancel_message` attribute, apparently. Looks like we forgot something there.)
History
Date User Action Args
2022-02-17 01:44:17gvanrossumsetrecipients: + gvanrossum, njs, jab, asvetlov, alex.gronholm, yselivanov, tinchester, iritkatriel, ajoino
2022-02-17 01:44:16gvanrossumsetmessageid: <1645062256.86.0.101988894746.issue46771@roundup.psfhosted.org>
2022-02-17 01:44:16gvanrossumlinkissue46771 messages
2022-02-17 01:44:16gvanrossumcreate