summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane Harvey <shnhrv@gmail.com>2020-11-26 13:24:48 (GMT)
committerGitHub <noreply@github.com>2020-11-26 13:24:48 (GMT)
commita1652da2c89bb21f3fdc71780b63b1de2dff11f0 (patch)
treed05650dd5c1d2ed777bfd5c8e5fff83b837809c4
parente3ef4d7f653976ac0ccacc4e3fde06bf0e0f139b (diff)
downloadcpython-a1652da2c89bb21f3fdc71780b63b1de2dff11f0.zip
cpython-a1652da2c89bb21f3fdc71780b63b1de2dff11f0.tar.gz
cpython-a1652da2c89bb21f3fdc71780b63b1de2dff11f0.tar.bz2
Document optional 'task'/'asyncgen' fields in call_exception_handler (#21735)
-rw-r--r--Doc/library/asyncio-eventloop.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index b1e7318..15b5b3f 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -1184,10 +1184,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::