• Victor Stinner's avatar
    Issue #23208, asyncio: Add BaseEventLoop._current_handle · 9b524d59
    Victor Stinner authored
    In debug mode, BaseEventLoop._run_once() now sets the
    BaseEventLoop._current_handle attribute to the handle currently executed.
    In release mode or when no handle is executed, the attribute is None.
    
    BaseEventLoop.default_exception_handler() displays the traceback of the current
    handle if available.
    9b524d59
base_events.py 42.7 KB