Skip to content

Commit c4d976c

Browse files
Privat33r-devPrivat33r-dev
authored andcommitted
Doc: fix links in 'pprint' documentation
Before links pointed out to the module `pprint` instead of the `pprint.pprint` function.
1 parent 72fefb5 commit c4d976c

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
@@ -39,7 +39,7 @@ This module defines the following functions:
3939
Prints the formatted representation of *object* followed by a newline.
4040
If *sort_dicts* is false (the default), dictionaries will be displayed with
4141
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
4343
parameters.
4444

4545
.. versionadded:: 3.8
@@ -262,7 +262,7 @@ are converted to strings. The default implementation uses the internals of the
262262
Example
263263
-------
264264

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

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

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

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

0 commit comments

Comments
 (0)