• Victor Stinner's avatar
    asyncio: Tulip issue 173: Enhance repr(Handle) and repr(Task) · 307bccc6
    Victor Stinner yazdı
    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.
    307bccc6
events.py 16.4 KB