-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add __str__ (or __repr__) to Workspace class #124
Comments
I think For the summary The workspace already implements a very basic |
Ah, I didn't see that. Currently, you need to |
Right. Ipython seems to show |
Yes, it is. It seems like |
Does this answer the question if it is good or bad practice to show only a summary in (I can't check stackoverflow at the moment, because I'm in a hotel and for some reason only https:// sites work.) |
I take the as essintial point that Do you think it's ok to violate this principle? In this case we could create a |
In Python, we're most often talking about conventions and not standards - and that's a good thing :-). It makes sense to go with what everybody does. I can't decide right now, because I need to dig deeper into this topic (I don't particularly like the SO post I linked, it was just the first one I found). Let's try to figure this out before we decide how to proceed. |
We can also simply do it the way we like and wait to see if somebody complains :) |
Yes. Since we can't make |
We could create a In contrast, the |
Yes! Perfect! I will take care of that in a PR. |
It would be nice if printing a Workspace object showed some basic information. I'm never sure if
__print__
or__repr__
should be used for this purpose though.The text was updated successfully, but these errors were encountered: