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 rep...@bugs.python.org
http://bugs.python.org/issue23208
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
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
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: asyncio: add BaseEventLoop._current_handle - asyncio: add
BaseEventLoop._current_handle (only used in debug mode)
___
Python tracker rep...@bugs.python.org
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 rep...@bugs.python.org
http://bugs.python.org/issue23208
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
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
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=165