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