[Python-ideas] Fwd: Re: Unambiguous repr for recursive objects
Serhiy Storchaka
storchaka at gmail.com
Sat Dec 26 11:59:25 EST 2015
> I disagree. We should not take this guideline too literally. The dots
> are easily understood and nobody has been fooled by a list containing an
> ellipsis yet. (Also, isn't the repr of an ellipsis the string 'Ellipsis'?)
Yes, the repr of an ellipsis is the string 'Ellipsis'. But the repr of
recursive list still looks as Python expression, and if somebody uses
repr/eval wraparound, he will silently get wrong result instead of an error.
More information about the Python-ideas
mailing list