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

Nick Coghlan ncoghlan at gmail.com
Mon Dec 28 22:02:34 EST 2015


On 28 December 2015 at 10:55, Steven D'Aprano <steve at pearwood.info> wrote:
> Given the risk that any such change will break doctests, I don't think
> this is a problem worth fixing:
>
> +1 on keeping the status quo
> -1 on using the verbose object.__repr__
> -0.5 on consistently using <...> for all types
> -0.5 on changing the repr of recursive OrderedDicts to be more like dict

+1 here - I've been persuaded that changing this behaviour isn't worth
the disruption (to existing third party documentation, if nothing
else).

Regards,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list