28 Oct
2021
28 Oct
'21
5:54 a.m.
On Wed, Oct 27, 2021 at 11:01 PM Guido van Rossum <guido@python.org> wrote:
One reason why I am favoring the first or second option is that we already have other types whose repr() is exactly what you enter (or at least a normalized version).
A very good reason indeed, and not at all opinionated, for https://docs.python.org/3/reference/datamodel.html#object.__repr__:
If at all possible, this should look like a valid Python expression that could be used to recreate an object with the same value
Regards Kristoffel