Incompatible change discussion: Pretty printing of ordered dict.
Matthias Bussonnier <[email protected]> Wed, 2 Aug 2017 11:44:57 -0700
| Newsgroups | gmane.comp.python.ipython.devel |
|---|---|
| Message-ID | <CANJQusWTx6FTWVJYFAx75-YYkB_VqbmZJ3cWt+M7GSqKD7tmmw@mail.gmail.com> |
Hi all, As you may or may not be aware, with Python 3.6 the dictionary are ordered by default. It is technically an implementation detail, though some people would love for it not to. Regardless, IPython has for a long time pretty-printed the dictionary with _sorted_ keys, this thus prevent to teach python and show that dictionaries maintain order. Thus there is the question of wether we should disable sorting keys while pretty-printing. https://github.com/ipython/ipython/issues/10110 This seem like a minor change, but I'd like to know if some of you are _relying_ on the ordering of dict when they are printed, or have compelling arguments against (or for) removing sorting of the keys before pretty_printing. If you care about the above subject, please have your voice heard in above issue. Thanks, -- Matthias