diff options
author | Wulian <xiguawulian@gmail.com> | 2024-11-14 04:58:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-14 04:58:06 (GMT) |
commit | 6a93a1adbb56a64ec6d20e8aab911439998502c9 (patch) | |
tree | e644286c8893d36ca7a44257bb19ac07ad504130 /Doc/library | |
parent | 4ae50615d2beef0f93d904ccbce44bbf7500b94a (diff) | |
download | cpython-6a93a1adbb56a64ec6d20e8aab911439998502c9.zip cpython-6a93a1adbb56a64ec6d20e8aab911439998502c9.tar.gz cpython-6a93a1adbb56a64ec6d20e8aab911439998502c9.tar.bz2 |
gh-126731: Update outdated project information in `pprint.pp` doc (#126732)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/pprint.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst index 1b3498e..2985f31 100644 --- a/Doc/library/pprint.rst +++ b/Doc/library/pprint.rst @@ -267,7 +267,7 @@ let's fetch information about a project from `PyPI <https://pypi.org>`_:: >>> import json >>> import pprint >>> from urllib.request import urlopen - >>> with urlopen('https://pypi.org/pypi/sampleproject/json') as resp: + >>> with urlopen('https://pypi.org/pypi/sampleproject/1.2.0/json') as resp: ... project_info = json.load(resp)['info'] In its basic form, :func:`~pprint.pp` shows the whole object:: |