-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-134861: Add CSV and 🍌SV output formats to asyncio ps
#134862
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
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # Lib/asyncio/tools.py
(Skipping news because this is an easter egg) |
@ZeroIntensity Hmm... But isn't the CSV format legit, so in my (very bad) opinion it still need news? |
Oh, hm. I guess we could add an entry for only CSV. I'll leave the decision to @dpdani. |
Yes, please add news for CSV format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, agreed with the NEWS part. But might it make the Easter Egg too obvious? Since people can just look at the PR through news. I think we might be able to split up the PRs into CSV and BSV and skip news on the latter, but it might be too much work.
We're not trying to hide or obsfucate; just not to advertise. |
Co-authored-by: Adam Turner <[email protected]>
Sure, resolve.
|
# Conflicts: # Lib/asyncio/tools.py
@@ -264,7 +264,7 @@ def display_awaited_by_tasks_table( | |||
def _display_awaited_by_tasks_table(table) -> None: | |||
# Print the table in a simple tabular format | |||
print( | |||
f"{_header[0]:<10} {_header[1]:<20} {_header[2]:<20} {_header[3]:<50} {_header[4]:<20} {_header[5]:<15}" | |||
f"{_header[0]:<10} {_header[1]:<20} {_header[2]:<20} {_header[3]:<50} {_header[4]:<50} {_header[5]:<15} {_header[6]:<15}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try storing the numbers in either another array or a tulle with headers and for loop this print.
asyncio ps
#134861