[New-bugs-announce] [issue39444] Incorrect description of sorting for PrettyPrinter

Steven DeRose report at bugs.python.org
Fri Jan 24 12:01:37 EST 2020

New submission from Steven DeRose <sderose at acm.org>:

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 order is not even known by normal dicts (only by OrderedDict), so I think the last phrase must be wrong. If it's somehow correct, it deserves explaining....

assignee: docs at python
components: Documentation
messages: 360630
nosy: TextGeek, docs at python
priority: normal
severity: normal
status: open
title: Incorrect description of sorting for PrettyPrinter
versions: Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list