mirror of
https://github.com/python/cpython.git
synced 2025-11-08 17:41:42 +00:00
[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 ce753517a8)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
5f1eaff5b5
commit
fd0bba67c4
2 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -1877,6 +1877,8 @@ def call_exception_handler(self, context):
|
|||
- '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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue