[issue42682] awaiting a wrapped asyncio.Task multiple times gives long, repeative tracebacks

Andrew Svetlov report at bugs.python.org
Wed Dec 23 05:40:52 EST 2020


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

The traceback contains frames from asyncio internal machinery, that's why the traceback is long.

IFIAK Python standard library never filters such calls, asyncio is not an exception.

On the other hand, well-known pytest library supports `__tracebackhide__ = True` for skipping pytest internals in test failure reports.
I'm not sure if we want to do such black magic though.

Plus, sometimes an information about internals is helpful to detect the actual source of the problem,

I have no clear vision of how to skip internal frames easily. 

Yuri, maybe you have an idea?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42682>
_______________________________________


More information about the Python-bugs-list mailing list