[issue46875] Missing name in TaskGroup.__repr__()

Joongi Kim report at bugs.python.org
Sun Feb 27 13:30:02 EST 2022


New submission from Joongi Kim <me at daybreaker.info>:

The __repr__() method in asyncio.TaskGroup does not include self._name.
I think this is a simple overlook, because asyncio.Task includes the task name in __repr__(). :wink:

https://github.com/python/cpython/blob/345572a1a02/Lib/asyncio/taskgroups.py#L28-L42

I'll make a simple PR to fix it.

----------
components: asyncio
messages: 414162
nosy: achimnol, asvetlov, gvanrossum, yselivanov
priority: normal
severity: normal
status: open
title: Missing name in TaskGroup.__repr__()
versions: Python 3.11

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


More information about the Python-bugs-list mailing list