]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-86513: improve docs of loop.call_exception_handler (GH-132466) (#132487)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 14 Apr 2025 11:42:45 +0000 (13:42 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Apr 2025 11:42:45 +0000 (11:42 +0000)
gh-86513: improve docs of loop.call_exception_handler (GH-132466)
(cherry picked from commit ce753517a87eec776c176f3245ce5d1554a59341)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Doc/library/asyncio-eventloop.rst
Lib/asyncio/base_events.py

index f1c4b822c9800f17197f615c59ae33431880baa2..92b98e2b2c862c4bfb6783f2811e2815b55b7b51 100644 (file)
@@ -1427,6 +1427,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 d6f98370fd23e1068ea45e7273b9fcda6cfda192..d2cedb689858533be29f082149724aa27e382f39 100644 (file)
@@ -1877,6 +1877,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.