-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
Standardize __repr__ for sheets and columns #2091
Conversation
I assume the CI failure is not related to my change. |
Hey @cool-RR, could you give me examples of times when you would have found this change valuable? Especially the tagging that columns are a Before we could merge this in, we would definitely need to have a |
When I'm developing my scripts, I snoop around a live VisiData session to look at the different objects and how they relate to each other. When I see an object is just
Columns are already tagged as columns. Currently their Here's the similar representation for some built-in Python objects:
Added, though I thought |
It can be either a Path (for a source sheet), or another Sheet (for a derived sheet or meta-sheet). |
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.
Okay, thanks @cool-RR!
I find the current
__repr__
for sheets confusing:It's not clear enough it's a sheet. I don't want to have to do
type(x)
to figure out what something is.Here's how it looks like after this change: