Skip to content

Fix the HTTPStatus reprs in the http docs example - #162578

Merged
StanFromIreland merged 1 commit into
python:mainfrom
AlexxRussell:doc-http-status-repr
Nov 25, 2026
Merged

StanFromIreland merged 1 commit into
python:mainfrom
AlexxRussell:doc-http-status-repr

Conversation

@AlexxRussell

Copy link
Copy Markdown
Contributor

The HTTPStatus usage example shows HTTPStatus.OK as the output of evaluating HTTPStatus.OK, and the same short form in the list(HTTPStatus) output. The interpreter prints <HTTPStatus.OK: 200>.

These two lines were changed in GH-22392, together with the enum repr(), during the 3.10 alphas. 3.10.0 was released with the <HTTPStatus.OK: 200> form, and 3.9, 3.11, 3.12, 3.14 and main print it as well, so this puts the earlier output back.

Trivial docs fix, so no issue.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #36138677 | 📁 Comparing 1cb24db against main (4743be9)

  🔍 Preview build  

1 file changed
± library/http.html

@StanFromIreland
StanFromIreland merged commit 7824032 into python:main Nov 25, 2026
51 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Nov 25, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @AlexxRussell for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Nov 25, 2026

Copy link
Copy Markdown

GH-162629 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Nov 25, 2026
@bedevere-app

bedevere-app Bot commented Nov 25, 2026

Copy link
Copy Markdown

GH-162630 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Nov 25, 2026
StanFromIreland pushed a commit that referenced this pull request Nov 25, 2026
…) (#162630)

(cherry picked from commit 7824032)

Co-authored-by: Alexander R <alex-secure@tuta.io>
StanFromIreland pushed a commit that referenced this pull request Nov 25, 2026
…) (#162629)

(cherry picked from commit 7824032)

Co-authored-by: Alexander R <alex-secure@tuta.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants