8000 bpo-46752: Uniform TaskGroup.__repr__ by asvetlov · Pull Request #31409 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-46752: Uniform TaskGroup.__repr__ #31409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace : with =
  • Loading branch information
asvetlov committed Feb 18, 2022
commit 0248f31b95583387b5597db39103cd8c3c0fdb67
6 changes: 3 additions & 3 deletions Lib/asyncio/taskgroups.py
Original file line number Diff line number Diff line cha 6B55 nge
Expand Up @@ -28,11 +28,11 @@ def __init__(self):
def __repr__(self):
info = []
if self._tasks:
info.append(f'tasks:{len(self._tasks)}')
info.append(f'tasks={len(self._tasks)}')
if self._unfinished_tasks:
info.append(f'unfinished:{self._unfinished_tasks}')
info.append(f'unfinished={self._unfinished_tasks}')
if self._errors:
info.append(f'errors:{len(self._errors)}')
info.append(f'errors={len(self._errors)}')
if self._aborting:
info.append('cancelling')
elif self._entered:
Expand Down
0