Guido van Rossum <gu...@python.org> added the comment:

> (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.)

Oh, it's passed to the CancelledError() constructor. But that's not documented 
either (I had to find the original issue that introduced this to figure it out 
-- bpo-31033).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46771>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to