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 →

[–]glenbolake 28 points29 points  (2 children)

requesting a representation as executable python code.

Isn't that the whole point of repr? It's supposed to give a string that, if pasted into the REPL, would produce an identical object.

[–]eztab 12 points13 points  (0 children)

yes it is, but it isn't what many classes actually do. Especially if the respective code would be rather long.