]> granicus.if.org Git - python/commit
asyncio: sync with Tulip
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 30 Jun 2014 12:39:11 +0000 (14:39 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 30 Jun 2014 12:39:11 +0000 (14:39 +0200)
commitb75380f3336db6dae82e8f75a2a5b020ae8fd377
tree8779c580d7fcc1e10467da07586d87e2116c6b58
parenta6ec5ee3c8fcc7ca28db737a0ad60d4d63b116c0
asyncio: sync with Tulip

- Sort imports
- Simplify/optimize iscoroutine(). Inline inspect.isgenerator(obj): replace it
  with isinstance(obj, types.GeneratorType)
- CoroWrapper: check at runtime if Python has the yield-from bug #21209.  If
  Python has the bug, check if CoroWrapper.send() was called by yield-from to
  decide if parameters must be unpacked or not.
- Fix "Task was destroyed but it is pending!" warning in
  test_task_source_traceback()
Lib/asyncio/base_events.py
Lib/asyncio/coroutines.py
Lib/test/test_asyncio/test_tasks.py