Author Martin.Teichmann
Recipients Martin.Teichmann, twisteroid ambassador
Date 2018-05-10.17:28:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I looked a bit into the details, and found that bpo-30048 created the described weird behavior. There they fixed the problem that a cancel is ignored if a coroutine manages to cancel its own task and return immediately. As shown in the discussion there, this is actually something happening in real code, and is a valid use case.

They fixed that by setting a CancelledError as an exception raised by the task, but did not cancel that task (they could have, I tested it, it would pass all tests).

But this is just a side show of the fact that we have now four different beasts that can be awaited, and behave differently: coroutines, Futures, Tasks, and _GatheringFutures. I think we should consolidate that.
Date User Action Args
2018-05-10 17:28:43Martin.Teichmannsetrecipients: + Martin.Teichmann, twisteroid ambassador
2018-05-10 17:28:43Martin.Teichmannsetmessageid: <>
2018-05-10 17:28:43Martin.Teichmannlinkissue33413 messages
2018-05-10 17:28:43Martin.Teichmanncreate