]> granicus.if.org Git - python/commit
(Merge 3.4) asyncio: repr(Task) now also contains the line number even if the
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 24 Jun 2014 20:58:23 +0000 (22:58 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 24 Jun 2014 20:58:23 +0000 (22:58 +0200)
commit5c2f5ab46541c6cacd3a69f6b5bbdfdf3d78aff2
tree509de0c30946158902b0cf570c8176b8f507d5b0
parent24a3c72638c1bbaa2d1351553b73627dab5df5ee
parentdf29c4a83d13d96cfcf809e648ee9b31a4174729
(Merge 3.4) asyncio: repr(Task) now also contains the line number even if the
coroutine is done: use the first line number of the code object instead of the
current line number of the generator frame.

The name of the coroutine is not enough because many coroutines may have the
same name. It's a common case in asyncio tests for example.