[issue39444] Incorrect description of sorting for PrettyPrinter

2020-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Closing is fine with me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39444] Incorrect description of sorting for PrettyPrinter

2020-01-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't think that any change is needed here. Adding "their default" to insertion order doesn't really help: if the reader knows dicts are now ordered, adding "default" is redundant; if the reader doesn't know, they'll still be confused. "What default

[issue39444] Incorrect description of sorting for PrettyPrinter

2020-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: How about 'in their default insertion order'? -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue39444] Incorrect description of sorting for PrettyPrinter

2020-01-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: dicts preserve their insertion order from Python 3.6 and is reflected in the documentation unless I am missing something here. -- nosy: +xtreak ___ Python tracker

[issue39444] Incorrect description of sorting for PrettyPrinter

2020-01-24 Thread Steven DeRose
New submission from Steven DeRose : The doc for pprint.PrettyPrinter at https://docs.python.org/3/library/pprint.html says: If sort_dicts is true (the default), dictionaries will be formatted with their keys sorted, otherwise they will display in insertion order I believe the insertion