[issue23208] asyncio: add BaseEventLoop._current_handle (only used in debug mode)

2015-01-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset d61d1e73674f by Victor Stinner in branch '3.4': asyncio: sync with Tulip https://hg.python.org/cpython/rev/d61d1e73674f -- ___ Python tracker _

[issue23208] asyncio: add BaseEventLoop._current_handle (only used in debug mode)

2015-01-26 Thread STINNER Victor
STINNER Victor added the comment: I commited current_handle.patch. It's only a first step, I will also change the logger or calls to the logger to use this traceback of the current handle. -- resolution: -> fixed status: open -> closed ___ Python t

[issue23208] asyncio: add BaseEventLoop._current_handle (only used in debug mode)

2015-01-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54d74f954bf9 by Victor Stinner in branch '3.4': Issue #23208, asyncio: Add BaseEventLoop._current_handle https://hg.python.org/cpython/rev/54d74f954bf9 -- nosy: +python-dev ___ Python tracker

[issue23208] asyncio: add BaseEventLoop._current_handle (only used in debug mode)

2015-01-20 Thread STINNER Victor
Changes by STINNER Victor : -- title: asyncio: add BaseEventLoop._current_handle -> asyncio: add BaseEventLoop._current_handle (only used in debug mode) ___ Python tracker ___ _

[issue23208] asyncio: add BaseEventLoop._current_handle

2015-01-20 Thread Yury Selivanov
Yury Selivanov added the comment: > What do you think of this feature? Does it make sense to expose (internally) > the "handle currently executed"? I think it's OK to have something like `loop._current_handle` to work ~only~ in debug mode. Enhancing `loop.call_exception_handler` to use it also

[issue23208] asyncio: add BaseEventLoop._current_handle

2015-01-20 Thread STINNER Victor
STINNER Victor added the comment: @Guido, @Yury: What do you think of this feature? Does it make sense to expose (internally) the "handle currently executed"? -- ___ Python tracker

[issue23208] asyncio: add BaseEventLoop._current_handle

2015-01-09 Thread STINNER Victor
New submission from STINNER Victor: One pain point of asynchronous programming is to understand bugs and rebuild the chain of callbacks / coroutines / tasks. I added the source traceback to Handle, Future (Task) and CoroWrapper to help debugging. Here is a new enhancement to provide more conte

[issue23208] asyncio: add BaseEventLoop._current_handle

2015-01-09 Thread STINNER Victor
STINNER Victor added the comment: Yury Selivanov proposed something different in the past: add a "context" (or a context identifier) to tasks to be able to (indirectly) attach local variables to tasks. "Add notion of context_id to event loop" https://code.google.com/p/tulip/issues/detail?id=16