Raymond Hettinger <[email protected]> added the comment:
Consider adding a flag to switch between sorted order and insertion order
(defaulting to the current behavior). For convenience, add a short-cut
function to call pprint() with the flag set to False.
def pprint(data, *, sort_dicts=True):
...
def pp(data, *args, **kwds):
pprint(data, *args, sort_dicts=False, **kwds)
----------
resolution: later ->
versions: -Python 3.6, Python 3.7
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue30670>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com