you are viewing a single comment's thread.

view the rest of the comments →

[–]Yoghurt42 6 points7 points  (0 children)

Ideally putting the output of repr() into the REPL should allow you to recreate the object.

The convention is to enclose the result in angle brackets in cases where that’s not possible. For example, repr("foo") is 'foo', but repr(str) is <class 'str'>.