Re: Incompatible change discussion: Pretty printing of ordered dict.
Thomas Kluyver <[email protected]> Fri, 4 Aug 2017 21:51:36 +0100
| Newsgroups | gmane.comp.python.ipython.devel |
|---|---|
| Message-ID | <CAOvn4qjV-6rpa5yc1q+6OP+64ccVNoMJV1VLn_P-ZOn4oR8E1A@mail.gmail.com> |
--===============8834061323569122568== Content-Type: multipart/alternative; boundary="f403045f9f7e8d285b0555f3abe2" --f403045f9f7e8d285b0555f3abe2 Content-Type: text/plain; charset="UTF-8" On 4 August 2017 at 21:48, Pietro Terna <[email protected]> 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 --f403045f9f7e8d285b0555f3abe2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On 4= August 2017 at 21:48, Pietro Terna <span dir=3D"ltr"><<a href=3D"mailto= :[email protected]" target=3D"_blank">[email protected]</a>></sp= an> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;= border-left:1px #ccc solid;padding-left:1ex"><div text=3D"#000000" bgcolor= =3D"#FFFFFF"> <tt> =C2=A0=C2=A0=C2=A0 Why in Idle the result is different?<br> <br> Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04) <br> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin<br> Type "copyright", "credits" or "license()&qu= ot; for more information.<span class=3D""><br> >>> d =3D {'c':3,'b':2,'a':1}<br></s= pan> >>> d<span class=3D""><br> {'c': 3, 'b': 2, 'a': 1}</span></tt> =20 =20 =20 </div></blockquote><div><br></div><div>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.<br>= <br></div><div>Thomas <br></div></div></div></div> --f403045f9f7e8d285b0555f3abe2-- --===============8834061323569122568== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ IPython-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/ipython-dev --===============8834061323569122568==--