You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Write __repr__/__str__ for format classes that uses reprlib so a user can print to get something readable #281
the auto-generated __repr__ provided by attrs will dump out every annotation to stdout. This is technically correct but not very helpful
Might be good to
override the __repr__ for each class and use reprlib in it to get an abbreviated representation of attributes
possibly provide an even friendlier version with __str__? In some cases I think it might be good to have an almost human-readable summary of the annotations in the file, "TextGrid with 5 tiers" or something like that
Activity
NickleDave commentedon Oct 12, 2024
... I think having a
__str__that usesreprlibso that the convention is youprint(annot)to get some more readable version might make the most sense