New submission from Andrew Svetlov <andrew.svet...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue32748>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to