[IPython-dev] Incompatible change discussion: Pretty printing of ordered dict.

Damián Avila damianavila at gmail.com
Thu Aug 10 08:28:16 EDT 2017


> If the dict maintaining insertion order becomes a language feature rather
than an implementation detail, I would favour showing that. But for now
it's an implementation detail, so it shouldn't change how we think about
dicts.

I agree.

2017-08-04 17:51 GMT-03:00 Thomas Kluyver <takowl at gmail.com>:

> On 4 August 2017 at 21:48, Pietro Terna <pietro.terna at unito.it> wrote:
>
>>     Why in Idle the result is different?
>>
>> Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04)
>> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
>> Type "copyright", "credits" or "license()" for more information.
>> >>> d = {'c':3,'b':2,'a':1}
>> >>> d
>> {'c': 3, 'b': 2, 'a': 1}
>>
>
> IDLE displays the standard Python repr() of an object. Part of IPython is
> a pretty-printing system that tries to provide clearer representations of
> containers like dicts and lists.
>
> Thomas
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at python.org
> https://mail.python.org/mailman/listinfo/ipython-dev
>
>


-- 
*Damián Avila*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20170810/f7eafac6/attachment.html>


More information about the IPython-dev mailing list