[Python-ideas] Fwd: Re: Unambiguous repr for recursive objects

Serhiy Storchaka storchaka at gmail.com
Tue Dec 29 01:44:13 EST 2015


On 27.12.15 22:41, Guido van Rossum wrote:
> Sure, but I still am curious what problem you are really trying to
> solve. The problem seems to be purely in your mind. You also seem to be
> taken the guideline that the repr() of an object should be eval()-able
> way too strictly. It is just a guideline to help class authors decide
> what their repr() should look like if they don't have a better idea. And
> the guideline encourages writing repr()s that are intuitive to readers.
> Beyond that there's nothing of value -- it just reduces guesswork on
> both sides.

Thank you, now I understand this.




More information about the Python-ideas mailing list