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: Suppport TaskWakeupMethWrapper.__self__ to conform asyncio _format_handle logic
Type: Stage: resolved
Components: asyncio Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, yselivanov
Priority: normal Keywords: patch

Created on 2019-12-06 13:09 by asvetlov, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 17484 merged asvetlov, 2019-12-06 13:13
PR 17493 merged miss-islington, 2019-12-07 11:24
PR 17494 merged asvetlov, 2019-12-07 11:29
Messages (2)
msg357913 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2019-12-06 13:09
_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
msg357915 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2019-12-06 13:14
For the note: TaskStepMethWrapper has the same fix already, TaskWakeupMethWrapper was accidentally missed.
History
Date User Action Args
2022-04-11 14:59:24adminsetgithub: 83167
2019-12-07 11:50:58asvetlovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-12-07 11:29:59asvetlovsetpull_requests: + pull_request16972
2019-12-07 11:24:07miss-islingtonsetpull_requests: + pull_request16971
2019-12-06 13:14:49asvetlovsetmessages: + msg357915
2019-12-06 13:13:01asvetlovsetkeywords: + patch
stage: patch review
pull_requests: + pull_request16963
2019-12-06 13:09:22asvetlovcreate