]> granicus.if.org Git - python/commit
Issue #23208, asyncio: Add BaseEventLoop._current_handle
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jan 2015 10:05:12 +0000 (11:05 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jan 2015 10:05:12 +0000 (11:05 +0100)
commit9b524d59b01645e8a63bf2006169ebc11bd0841a
tree63a23f4da6582277641b08770c0fa643c78b3132
parent3d2256f671b7ed5c769dd34b27ae597cbc69047c
Issue #23208, asyncio: Add BaseEventLoop._current_handle

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.
Lib/asyncio/base_events.py