This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Improve _asyncio.TaskStepMethWrapper and TaskWakeupMethWrapper reprs
Type: Stage: resolved
Components: asyncio Versions: Python 3.8
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, yselivanov
Priority: normal Keywords:

Created on 2018-02-02 09:43 by asvetlov, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg311486 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2018-02-02 09:43
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.
msg311500 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2018-02-02 15:53
I think I've fixed that.  Can you give me a script to repro?
msg311501 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2018-02-02 16:17
False alarm, sorry.
History
Date User Action Args
2022-04-11 14:58:57adminsetgithub: 76929
2018-02-02 16:17:26asvetlovsetstatus: open -> closed
resolution: out of date
stage: resolved
2018-02-02 16:17:09asvetlovsetmessages: + msg311501
2018-02-02 15:53:07yselivanovsetmessages: + msg311500
2018-02-02 09:43:39asvetlovcreate