]> granicus.if.org Git - python/commit
(Merge 3.4) asyncio: Set __qualname__ attribute of CoroWrapper in @coroutine
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Jun 2014 23:15:27 +0000 (01:15 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Jun 2014 23:15:27 +0000 (01:15 +0200)
commitc82a4d897f56511727ba2244e2da8189e0924784
tree7a3239a627ad61b0611ec601874366af54351ff1
parentadc7bcb93ad224563b1795c83c850e213f3b0455
parent8d3e02ef5a452b59fc909bf45d1d18bfd916c596
(Merge 3.4) 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