]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-86513: improve docs of loop.call_exception_handler (#132466)
authorKumar Aditya <kumaraditya@python.org>
Sun, 13 Apr 2025 21:39:24 +0000 (03:09 +0530)
committerGitHub <noreply@github.com>
Sun, 13 Apr 2025 21:39:24 +0000 (21:39 +0000)
Doc/library/asyncio-eventloop.rst
Lib/asyncio/base_events.py

index fae688031076392268a823f2faa683db3bb7476e..8f561744fe4981fdb051a5b00224aff715fe3051 100644 (file)
@@ -1440,6 +1440,8 @@ Allows customizing how exceptions are handled in the event loop.
    * 'protocol' (optional): :ref:`Protocol <asyncio-protocol>` instance;
    * 'transport' (optional): :ref:`Transport <asyncio-transport>` instance;
    * 'socket' (optional): :class:`socket.socket` instance;
+   * 'source_traceback' (optional): Traceback of the source;
+   * 'handle_traceback' (optional): Traceback of the handle;
    * 'asyncgen' (optional): Asynchronous generator that caused
                             the exception.
 
index 7b4e92aed682d5dd5f00ce4cad54f7ec8c52c942..29b872ce00ec8116ecdd70e2f84d864258a24a27 100644 (file)
@@ -1879,6 +1879,8 @@ class BaseEventLoop(events.AbstractEventLoop):
         - 'protocol' (optional): Protocol instance;
         - 'transport' (optional): Transport instance;
         - 'socket' (optional): Socket instance;
+        - 'source_traceback' (optional): Traceback of the source;
+        - 'handle_traceback' (optional): Traceback of the handle;
         - 'asyncgen' (optional): Asynchronous generator that caused
                                  the exception.