File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ This module defines the following functions:
39
39
Prints the formatted representation of *object * followed by a newline.
40
40
If *sort_dicts * is false (the default), dictionaries will be displayed with
41
41
their keys in insertion order, otherwise the dict keys will be sorted.
42
- *args * and *kwargs * will be passed to :func: `pprint ` as formatting
42
+ *args * and *kwargs * will be passed to :func: `pprint.pprint ` as formatting
43
43
parameters.
44
44
45
45
.. versionadded :: 3.8
@@ -262,7 +262,7 @@ are converted to strings. The default implementation uses the internals of the
262
262
Example
263
263
-------
264
264
265
- To demonstrate several uses of the :func: `pprint ` function and its parameters,
265
+ To demonstrate several uses of the :func: `pprint.pprint ` function and its parameters,
266
266
let's fetch information about a project from `PyPI <https://pypi.org >`_::
267
267
268
268
>>> import json
@@ -271,7 +271,7 @@ let's fetch information about a project from `PyPI <https://pypi.org>`_::
271
271
>>> with urlopen('https://pypi.org/pypi/sampleproject/json') as resp:
272
272
... project_info = json.load(resp)['info']
273
273
274
- In its basic form, :func: `pprint ` shows the whole object::
274
+ In its basic form, :func: `pprint.pprint ` shows the whole object::
275
275
276
276
>>> pprint.pprint(project_info)
277
277
{'author': 'The Python Packaging Authority',
You can’t perform that action at this time.
0 commit comments