]> granicus.if.org Git - python/commit
(Merge 3.4) asyncio: Tulip issue 173: Enhance repr(Handle) and repr(Task)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 12 Jun 2014 16:39:42 +0000 (18:39 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 12 Jun 2014 16:39:42 +0000 (18:39 +0200)
commite7efff5bb884d4387bf911511c723c2f6a8c89e1
tree10f2e37236d8d7526c5f322e6b8672b74b307770
parent2d8d9d57b5212aa8a563393218d5432097d200db
parent307bccc6ff6670c58f4c20421a29071ff710e6a3
(Merge 3.4) asyncio: Tulip issue 173: Enhance repr(Handle) and repr(Task)

repr(Handle) is shorter for function: "foo" instead of "<function foo at
0x...>". It now also includes the source of the callback, filename and line
number where it was defined, if available.

repr(Task) now also includes the current position in the code, filename and
line number, if available. If the coroutine (generator) is done, the line
number is omitted and "done" is added.