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 @@ -41,7 +41,7 @@ Functions
41
41
Prints the formatted representation of *object * followed by a newline.
42
42
If *sort_dicts * is false (the default), dictionaries will be displayed with
43
43
their keys in insertion order, otherwise the dict keys will be sorted.
44
- *args * and *kwargs * will be passed to :func: `pprint ` as formatting
44
+ *args * and *kwargs * will be passed to :func: `pprint.pprint ` as formatting
45
45
parameters.
46
46
47
47
.. versionadded :: 3.8
@@ -263,7 +263,7 @@ are converted to strings. The default implementation uses the internals of the
263
263
Example
264
264
-------
265
265
266
- To demonstrate several uses of the :func: `pprint ` function and its parameters,
266
+ To demonstrate several uses of the :func: `pprint.pprint ` function and its parameters,
267
267
let's fetch information about a project from `PyPI <https://pypi.org >`_::
268
268
269
269
>>> import json
@@ -272,7 +272,7 @@ let's fetch information about a project from `PyPI <https://pypi.org>`_::
272
272
>>> with urlopen('https://pypi.org/pypi/sampleproject/json') as resp:
273
273
... project_info = json.load(resp)['info']
274
274
275
- In its basic form, :func: `pprint ` shows the whole object::
275
+ In its basic form, :func: `pprint.pprint ` shows the whole object::
276
276
277
277
>>> pprint.pprint(project_info)
278
278
{'author': 'The Python Packaging Authority',
You can’t perform that action at this time.
0 commit comments