Open NickleDave opened 1 year ago
The Sequence.__repr__ currently prints a human-readable summary of an instance as a "Sequence with $n$ segments".
Sequence.__repr__
This is what a __str__ representation should do, but there isn't one currently.
__str__
__repr__
eval
reprlib
The
Sequence.__repr__
currently prints a human-readable summary of an instance as a "Sequence with $n$ segments".This is what a
__str__
representation should do, but there isn't one currently.__str__
method__repr__
method to be closer to something we could pass to aneval
method. Don't forget thereprlib
exists in the standard library.