-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outdated pprint.pp
doc example about pypi sampleproject
version
#126731
Labels
docs
Documentation in the Doc dir
Comments
Perhaps we should pin the version in the URL so that the example won't become stale again in the future? For example: with urlopen('https://pypi.org/pypi/sampleproject/1.2.0/json') as resp:
... |
A great suggetsion, I will add it to 4.0.0 |
hauntsaninja
pushed a commit
that referenced
this issue
Nov 14, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 14, 2024
…oc (pythonGH-126732) (cherry picked from commit 6a93a1a) Co-authored-by: Wulian <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 14, 2024
…oc (pythonGH-126732) (cherry picked from commit 6a93a1a) Co-authored-by: Wulian <[email protected]>
This was referenced Nov 14, 2024
hauntsaninja
pushed a commit
that referenced
this issue
Nov 14, 2024
hauntsaninja
pushed a commit
that referenced
this issue
Nov 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation
Currently, the examples in
pprint
that demonstrate thepprint.pp
function are outdated. The last edit was in 2018, six years ago, and the JSON link in the example now points tosampleproject
(see #10201). The documentation currently references version 1.2 ofsampleproject
, which was released in 2015 (https://pypi.org/project/sampleproject/#history). The latest version is now 4.0, released last week. Thus, the information in the documentation no longer matches the current state, and I have submitted a PR to address this. The information varies widely over the past nine yearsA possible question might be: do we need to frequently update this example? The answer is no—it changes infrequently and thus won’t increase maintenance overhead.
Linked PRs
pprint.pp
doc #126732pprint.pp
doc (GH-126732) #126818pprint.pp
doc (GH-126732) #126819The text was updated successfully, but these errors were encountered: