scarlet
scarlet copied to clipboard
__repr__ for everyone!
I can do this. Maybe we can add both __str__
and __repr__
methods. Should I take this up? Also, indicating the classes to make additions would be helpful.
This would be a good issue to get started. However, as I said in #51, we're shuffling the code, so I'd hold off for a few days, but then it would be nice to get __repr__
methods. Most of our classes have too complex entries for __str__
, so don't bother. Therefore, as a rule, I'd recommend that __repr__
states the class name and the size of the most relevant container object.
This would be a good issue to get started. However, as I said in #51, we're shuffling the code, so I'd hold off for a few days, but then it would be nice to get
__repr__
methods. Most of our classes have too complex entries for__str__
, so don't bother. Therefore, as a rule, I'd recommend that__repr__
states the class name and the size of the most relevant container object.
Thanks for the insights. I'll get started.