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

Emmanuel Arias report at bugs.python.org
Wed Feb 6 08:20:44 EST 2019


Emmanuel Arias <emmanuelarias30 at gmail.com> added the comment:

> pprint only sorts dicts currently so sort_dicts is better than sort that sounds more general. 

Yes. Because pprint just sort dicts, I think that is better rename the parameter like just sort. But was an opinion, that does not affect to the behavior. 

> sort_dicts=True is the current behavior so I guess this is backwards compatible way to do this change.

I understand it. I was confuse.

----------

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


More information about the Python-bugs-list mailing list