New submission from Andrew Svetlov <>:

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 <>
Python-bugs-list mailing list

Reply via email to