[Python-checkins] Document optional 'task'/'asyncgen' fields in call_exception_handler (GH-21735) (GH-30727)

vstinner webhook-mailer at python.org
Sat Jan 22 19:59:32 EST 2022


https://github.com/python/cpython/commit/d807bf2ee9e4774c5a95dbbef3bdd722d1847e23
commit: d807bf2ee9e4774c5a95dbbef3bdd722d1847e23
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: vstinner <vstinner at python.org>
date: 2022-01-23T01:59:23+01:00
summary:

Document optional 'task'/'asyncgen' fields in call_exception_handler (GH-21735) (GH-30727)

(cherry picked from commit a1652da2c89bb21f3fdc71780b63b1de2dff11f0)

Co-authored-by: Shane Harvey <shnhrv at gmail.com>

Co-authored-by: Shane Harvey <shnhrv at gmail.com>

files:
M Doc/library/asyncio-eventloop.rst

diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index 140851ce2e448..2a6d82fa057b0 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 <asyncio-protocol>` instance;
    * 'transport' (optional): :ref:`Transport <asyncio-transport>` instance;
-   * 'socket' (optional): :class:`socket.socket` instance.
+   * 'socket' (optional): :class:`socket.socket` instance;
+   * 'asyncgen' (optional): Asynchronous generator that caused
+                            the exception.
 
    .. note::
 



More information about the Python-checkins mailing list