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

asvetlov webhook-mailer at python.org
Thu Nov 26 08:24:53 EST 2020


https://github.com/python/cpython/commit/a1652da2c89bb21f3fdc71780b63b1de2dff11f0
commit: a1652da2c89bb21f3fdc71780b63b1de2dff11f0
branch: master
author: Shane Harvey <shnhrv at gmail.com>
committer: asvetlov <andrew.svetlov at gmail.com>
date: 2020年11月26日T15:24:48+02:00
summary:
Document optional 'task'/'asyncgen' fields in call_exception_handler (#21735)
files:
M Doc/library/asyncio-eventloop.rst
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index b1e73189a7a4c..15b5b3fe822ce 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::
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /