Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 70b93ac

Browse filesBrowse files
committed
Doc: fix links in 'pprint' documentation
Before links pointed out to the module `pprint` instead of the `pprint.pprint` function.
1 parent 67d090d commit 70b93ac
Copy full SHA for 70b93ac

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎Doc/library/pprint.rst

Copy file name to clipboardExpand all lines: Doc/library/pprint.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This module defines the following functions:
3838
Prints the formatted representation of *object* followed by a newline.
3939
If *sort_dicts* is false (the default), dictionaries will be displayed with
4040
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
4242
parameters.
4343

4444
.. versionadded:: 3.8
@@ -261,7 +261,7 @@ are converted to strings. The default implementation uses the internals of the
261261
Example
262262
-------
263263

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

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

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

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.