-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
String representation and pretty printing as in NIXPy #309
Comments
One point to make is, that the objects are not exactly the same and will probably never be, so it might be good to have an easy way to spot the difference between a nix and an odml odml object. nix:
odml:
A couple of points here:
I'd probably vote for the nix style of formatting while including subsection numbers in addition. |
Showing child counts is what we discussed (extensively) in #67 and never landed on a solution. For distinguishing, we could simply outright state the namespace: |
As a simple solution for counts I'd go for |
I'm not against showing direct descendants, only. |
String representations (
__str__
and__repr__
) should be the same in odML as in NIXPy. The objects should behave in the same way so they should also look the same.It would also be nice to port over the pretty printing function (
pprint()
).This is related to #67 but I didn't want to bring it into that old discussion because it's more general.
This issue is also related to #307.
The text was updated successfully, but these errors were encountered: