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

Thomas Kluyver takowl at gmail.com
Fri Aug 4 16:51:36 EDT 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20170804/06fef77b/attachment.html>


More information about the IPython-dev mailing list