]> granicus.if.org Git - python/commit
asyncio: sync with Tulip
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 10 Jul 2014 22:21:27 +0000 (00:21 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 10 Jul 2014 22:21:27 +0000 (00:21 +0200)
commitc39ba7d611fe556314acc8c11cd9f805512db663
tree21dc6e07bea4dae7705aa9ccd26326d05303f6aa
parentf68bd88aa61ae6214d3dc5552a7e3f9cf1401507
asyncio: sync with Tulip

- repr(Task) and repr(CoroWrapper) now also includes where these objects were
  created. If the coroutine is not a generator (don't use "yield from"), use
  the location of the function, not the location of the coro() wrapper.
- Fix create_task(): truncate the traceback to hide the call to create_task().
Lib/asyncio/base_events.py
Lib/asyncio/coroutines.py
Lib/asyncio/tasks.py
Lib/test/test_asyncio/test_tasks.py