[Python-ideas] Change repr of collections.OrderedDict to be more dict-like

Terry Reedy tjreedy at udel.edu
Thu Jul 26 13:23:42 EDT 2018


On 7/26/2018 1:21 PM, Terry Reedy wrote:
> On python-idea,  Miro Hrončok asked today whether we can change the 
> OrderedDict repr from, for instance,
> 
> OrderedDict([('a', '1'), ('b', '2')]) # to
> OrderedDict({'a': '1', 'b': '2'})
> 
> I am not sure what our repr change policy is, as there is a 
> back-compatibility issue but I remember there being changes.

Whoops, I meant to send this query elsewhere, so I could answer properly 
here.

-- 
Terry Jan Reedy




More information about the Python-ideas mailing list