From: Kumar Aditya Date: Sun, 13 Apr 2025 21:39:24 +0000 (+0530) Subject: gh-86513: improve docs of loop.call_exception_handler (#132466) X-Git-Tag: v3.14.0b1~498 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce753517a87eec776c176f3245ce5d1554a59341;p=thirdparty%2FPython%2Fcpython.git gh-86513: improve docs of loop.call_exception_handler (#132466) --- diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index fae688031076..8f561744fe49 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1440,6 +1440,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 7b4e92aed682..29b872ce00ec 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -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.