Skip to content

Commit ce75351

Browse files
gh-86513: improve docs of loop.call_exception_handler (#132466)
1 parent 887eabc commit ce75351

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Doc/library/asyncio-eventloop.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,8 @@ Allows customizing how exceptions are handled in the event loop.
14401440
* 'protocol' (optional): :ref:`Protocol <asyncio-protocol>` instance;
14411441
* 'transport' (optional): :ref:`Transport <asyncio-transport>` instance;
14421442
* 'socket' (optional): :class:`socket.socket` instance;
1443+
* 'source_traceback' (optional): Traceback of the source;
1444+
* 'handle_traceback' (optional): Traceback of the handle;
14431445
* 'asyncgen' (optional): Asynchronous generator that caused
14441446
the exception.
14451447

Lib/asyncio/base_events.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,8 @@ def call_exception_handler(self, context):
18791879
- 'protocol' (optional): Protocol instance;
18801880
- 'transport' (optional): Transport instance;
18811881
- 'socket' (optional): Socket instance;
1882+
- 'source_traceback' (optional): Traceback of the source;
1883+
- 'handle_traceback' (optional): Traceback of the handle;
18821884
- 'asyncgen' (optional): Asynchronous generator that caused
18831885
the exception.
18841886

0 commit comments

Comments
 (0)