From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 23 Jan 2022 00:59:23 +0000 (-0800) Subject: Document optional 'task'/'asyncgen' fields in call_exception_handler (GH-21735) ... X-Git-Tag: v3.9.11~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d807bf2ee9e4774c5a95dbbef3bdd722d1847e23;p=thirdparty%2FPython%2Fcpython.git Document optional 'task'/'asyncgen' fields in call_exception_handler (GH-21735) (GH-30727) (cherry picked from commit a1652da2c89bb21f3fdc71780b63b1de2dff11f0) Co-authored-by: Shane Harvey Co-authored-by: Shane Harvey --- diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 140851ce2e44..2a6d82fa057b 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1193,10 +1193,13 @@ Allows customizing how exceptions are handled in the event loop. * 'message': Error message; * 'exception' (optional): Exception object; * 'future' (optional): :class:`asyncio.Future` instance; + * 'task' (optional): :class:`asyncio.Task` instance; * 'handle' (optional): :class:`asyncio.Handle` instance; * 'protocol' (optional): :ref:`Protocol ` instance; * 'transport' (optional): :ref:`Transport ` instance; - * 'socket' (optional): :class:`socket.socket` instance. + * 'socket' (optional): :class:`socket.socket` instance; + * 'asyncgen' (optional): Asynchronous generator that caused + the exception. .. note::