[New-bugs-announce] [issue38986] Suppport TaskWakeupMethWrapper.__self__ to conform asyncio _format_handle logic

Andrew Svetlov report at bugs.python.org
Fri Dec 6 08:09:22 EST 2019


New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:

_format_handle() behaves differently if handle._callback.__self__ is asyncio.Task instance.

To follow this logic TaskWakeupMethWrapper from _asynciomodule.c should support the corresponding member.

The fix is very desired for analyzing slow callbacks, without it the output doesn't point on slow coroutine but mentions <TaskWakeupMethWrapper at 0x...> only.

See also #38608

----------
components: asyncio
messages: 357913
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Suppport TaskWakeupMethWrapper.__self__ to conform asyncio _format_handle logic
versions: Python 3.7, Python 3.8, Python 3.9

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


More information about the New-bugs-announce mailing list