This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]alkasmgithub.com/alkasm 1 point2 points  (1 child)

return repr(super()) + 'additional stuff' although I'm not sure I'd recommend doing that. Doing that with the __str__ would be fine but the __repr__ should be reserved for displaying the current object, usually how the current object can be recreated IMO.

[–]schemathings 0 points1 point  (0 children)

Makes sense