From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 14 Apr 2025 11:42:45 +0000 (+0200) Subject: [3.13] gh-86513: improve docs of loop.call_exception_handler (GH-132466) (#132487) X-Git-Tag: v3.13.4~277 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd0bba67c44adee538c678e47ba77e9832b1f6da;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-86513: improve docs of loop.call_exception_handler (GH-132466) (#132487) gh-86513: improve docs of loop.call_exception_handler (GH-132466) (cherry picked from commit ce753517a87eec776c176f3245ce5d1554a59341) Co-authored-by: Kumar Aditya --- diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index f1c4b822c980..92b98e2b2c86 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1427,6 +1427,8 @@ Allows customizing how exceptions are handled in the event loop. * 'protocol' (optional): :ref:`Protocol ` instance; * 'transport' (optional): :ref:`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. diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index d6f98370fd23..d2cedb689858 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -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.