hybridq icon indicating copy to clipboard operation
hybridq copied to clipboard

Improve `__str__` and `__repr__`, and implement `_repr_pretty_`

Open s-mandra opened this issue 3 years ago • 0 comments

At the moment, most of the objects in HybridQ only implement __str__, while __repr__ simply calls __str__. However, __repr__ should return an unambiguous representation of the object while __str__ should return a more readable representation.

Also, it is suggested the implementation of _repr_pretty_ for IPython, to avoid overly verbose output when using Jupyter.

s-mandra avatar Nov 18 '21 23:11 s-mandra