Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f5be79

Browse files
committed
Doc: fix links in 'pprint' documentation
Before links pointed out to the module `pprint` instead of the `pprint.pprint` function.
1 parent ff430ea commit 7f5be79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/pprint.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Functions
4141
Prints the formatted representation of *object* followed by a newline.
4242
If *sort_dicts* is false (the default), dictionaries will be displayed with
4343
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
4545
parameters.
4646

4747
.. versionadded:: 3.8
@@ -263,7 +263,7 @@ are converted to strings. The default implementation uses the internals of the
263263
Example
264264
-------
265265

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,
267267
let's fetch information about a project from `PyPI <https://pypi.org>`_::
268268

269269
>>> import json
@@ -272,7 +272,7 @@ let's fetch information about a project from `PyPI <https://pypi.org>`_::
272272
>>> with urlopen('https://pypi.org/pypi/sampleproject/json') as resp:
273273
... project_info = json.load(resp)['info']
274274

275-
In its basic form, :func:`pprint` shows the whole object::
275+
In its basic form, :func:`pprint.pprint` shows the whole object::
276276

277277
>>> pprint.pprint(project_info)
278278
{'author': 'The Python Packaging Authority',

0 commit comments

Comments
 (0)