]> granicus.if.org Git - python/commit
asyncio: Set __qualname__ attribute of CoroWrapper in @coroutine decorator on
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Jun 2014 23:14:59 +0000 (01:14 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Jun 2014 23:14:59 +0000 (01:14 +0200)
commit8d3e02ef5a452b59fc909bf45d1d18bfd916c596
tree7c03d264b990109a99a92866b09b8c98409ff9fd
parent66dc6b0f5355857ea73f59e6eb2066bf6604d322
asyncio: Set __qualname__ attribute of CoroWrapper in @coroutine decorator on
Python 3.5

- Drop __slots__ optimization of CoroWrapper to be able to set the __qualname__
  attribute.
- Add tests on __name__, __qualname__ and __module__ of a coroutine function
  and coroutine object.
- Fix test_tasks when run in debug mode (PYTHONASYNCIODEBUG env var set) on
  Python 3.3 or 3.4
Lib/asyncio/tasks.py
Lib/test/test_asyncio/test_tasks.py