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 dreamsorcerer
Recipients ajoino, alex.gronholm, asvetlov, chris.jerdonek, dreamsorcerer, gvanrossum, iritkatriel, jab, njs, tinchester, yselivanov
Date 2022-02-21.00:19:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645402750.88.0.664265853878.issue46771@roundup.psfhosted.org>
In-reply-to
Content
Actually, in your counter proposal, you say:

> Such context managers should still keep track of whether they cancelled the task themselves or not, and if they did, they should always call t.uncancel().

But, if we are using nonces on the CancelledError to keep track, then only 1 context manager will know if it was themselves or not. This is exactly why I'm proposing to use multiple CancelledErrors, so that every nonce is passed to the handling code.
History
Date User Action Args
2022-02-21 00:19:11dreamsorcerersetrecipients: + dreamsorcerer, gvanrossum, njs, jab, asvetlov, alex.gronholm, chris.jerdonek, yselivanov, tinchester, iritkatriel, ajoino
2022-02-21 00:19:10dreamsorcerersetmessageid: <1645402750.88.0.664265853878.issue46771@roundup.psfhosted.org>
2022-02-21 00:19:10dreamsorcererlinkissue46771 messages
2022-02-21 00:19:10dreamsorcerercreate