[issue30670] pprint for dict in sorted order or insert order?

Jan-Hein Bührman report at bugs.python.org
Wed Oct 17 11:17:43 EDT 2018


Jan-Hein Bührman <janhein.buhrman at gmail.com> added the comment:

@terry.reedy - If I understand correctly, this issue was closed by you awaiting what would happen with the dict insertion order after 3.6.

It has been decided that dict insertion will stay for now and in the future. >>> Should this issue now be reopened?

And I would favor backward compatibility (key sort order) with an additional keyword for pprint to display it "unsorted" order (from pprint perspective, insertion order for dicts and OrderedDicts, and whatever other order for whatever other dicts).

----------
nosy: +Jan-Hein Bührman

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30670>
_______________________________________


More information about the Python-bugs-list mailing list