[Python-ideas] reprs of recursive datastructures.

Mike Graham mikegraham at gmail.com
Fri Sep 7 21:51:21 CEST 2012

With the Python 3 loosening of where ... can occur, this somewhat
suboptimal behaviour occurs

>>> x = []
>>> x.append(x)
>>> x
>>> eval(repr(x))

Is this something that can be improved? Is it something worth improving?


More information about the Python-ideas mailing list