]> granicus.if.org Git - python/commit
asyncio, Tulip issue 177: Rewite repr() of Future, Task, Handle and TimerHandle
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 25 Jun 2014 19:41:58 +0000 (21:41 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 25 Jun 2014 19:41:58 +0000 (21:41 +0200)
commit975735f729df6b7767556d2d389b560dbc7500ac
tree8579740ca947c8323088a452d659e4c0cb130a2e
parent65c623de74cba3eff6d8f5f4c37cfec89c0fde43
asyncio, Tulip issue 177: Rewite repr() of Future, Task, Handle and TimerHandle

- Uniformize repr() output to format "<Class ...>"
- On Python 3.5+, repr(Task) uses the qualified name instead of the short name
  of the coroutine
Lib/asyncio/events.py
Lib/asyncio/futures.py
Lib/asyncio/tasks.py
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_futures.py
Lib/test/test_asyncio/test_tasks.py