mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-126731: Update outdated project information in pprint.pp
doc (#126732)
This commit is contained in:
parent
4ae50615d2
commit
6a93a1adbb
1 changed files with 1 additions and 1 deletions
|
@ -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::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue