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 935b04a

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 0170333 commit 935b04a
Copy full SHA for 935b04a

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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.