[New-bugs-announce] [issue32748] Improve _asyncio.TaskStepMethWrapper and TaskWakeupMethWrapper reprs
Andrew Svetlov
report at bugs.python.org
Fri Feb 2 04:43:39 EST 2018
New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:
Currently both helper classes have no custom tp_repr slot, it leads to autogenerated <TaskWakeupMethWrapper at 0x....> values.
Both helpers are private but in debug mode asyncio loop reports about slow callbacks, the message doesn't point on executed coroutine -- it just prints 'Executing <TaskWakeupMethWrapper at 0x....> took 0.203 seconds'.
The only way to figure out what coroutine is slow is monkey-patching CTask implementation back to PyTask usage.
Sure, the method is too obscure for newbies.
----------
components: asyncio
messages: 311486
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Improve _asyncio.TaskStepMethWrapper and TaskWakeupMethWrapper reprs
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32748>
_______________________________________
More information about the New-bugs-announce
mailing list