mirror of
https://github.com/python/cpython.git
synced 2025-11-29 06:22:10 +00:00
gh-115986 Improve pprint documentation accuracy (#117403)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
550483b7e6
commit
ceb6038b05
1 changed files with 2 additions and 3 deletions
|
|
@ -19,9 +19,8 @@ such as files, sockets or classes are included, as well as many other
|
||||||
objects which are not representable as Python literals.
|
objects which are not representable as Python literals.
|
||||||
|
|
||||||
The formatted representation keeps objects on a single line if it can, and
|
The formatted representation keeps objects on a single line if it can, and
|
||||||
breaks them onto multiple lines if they don't fit within the allowed width.
|
breaks them onto multiple lines if they don't fit within the allowed width,
|
||||||
Construct :class:`PrettyPrinter` objects explicitly if you need to adjust the
|
adjustable by the *width* parameter defaulting to 80 characters.
|
||||||
width constraint.
|
|
||||||
|
|
||||||
Dictionaries are sorted by key before the display is computed.
|
Dictionaries are sorted by key before the display is computed.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue