[issue30670] pprint for dict in sorted order or insert order?
Philippe
report at bugs.python.org
Sat Jan 27 18:14:40 EST 2018
Philippe <pombredanne at gmail.com> added the comment:
IMHO since Guido said that dictionary order is guaranteed going forward [1], the order should now be preserved in 3.6+
Getting a sorted pprint'ed dict in a Py3.6.1 was a surprise to me coming from Python2.
The default ordered dict is to me the killer feature of 3 and a major driver to migrate from 2.
[1] https://mail.python.org/pipermail/python-dev/2017-December/151286.html
----------
nosy: +pombreda
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30670>
_______________________________________
More information about the Python-bugs-list
mailing list