From cdebebb1ffea79178c56f78fd4f7ecbaa2c3c1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Simon?= Date: Wed, 30 Apr 2025 10:20:10 +0200 Subject: [PATCH 1/2] gh-102247: Improve documentation of http.HTTPStatus members update --- Doc/library/http.rst | 3 ++- Doc/whatsnew/3.13.rst | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Doc/library/http.rst b/Doc/library/http.rst index ce3fb9f8120502..b0bdfc65e4508d 100644 --- a/Doc/library/http.rst +++ b/Doc/library/http.rst @@ -139,7 +139,8 @@ equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as .. versionchanged:: 3.13 Implemented RFC9110 naming for status constants. Old constant names are preserved for - backwards compatibility. + backwards compatibility: ``413 REQUEST_ENTITY_TOO_LARGE``, ``414 REQUEST_URI_TOO_LONG``, + ``416 REQUESTED_RANGE_NOT_SATISFIABLE`` and ``422 UNPROCESSABLE_ENTITY``. HTTP status category -------------------- diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 2090759d3c4fde..de64555c152219 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -904,6 +904,16 @@ glob (Contributed by Barney Gale in :gh:`72904`.) +http +---- + +* :class:`http.HTTPStatus` was updated to use the names from :rfc:`9110`. + This RFC includes some HTTP statuses previously only used for WEBDAV + and assigns more generic names to them. + The old constants are preserved for backwards compatibility. + (Contributed by Michiel W. Beijen in :gh:`102247`.) + + importlib --------- From a6cd4ebb29c2e41aae934ffeeb0b2ecf51f53fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Simon?= Date: Sat, 21 Jun 2025 14:47:11 +0200 Subject: [PATCH 2/2] Remove What's New 3.13 entry --- Doc/whatsnew/3.13.rst | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index de64555c152219..2090759d3c4fde 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -904,16 +904,6 @@ glob (Contributed by Barney Gale in :gh:`72904`.) -http ----- - -* :class:`http.HTTPStatus` was updated to use the names from :rfc:`9110`. - This RFC includes some HTTP statuses previously only used for WEBDAV - and assigns more generic names to them. - The old constants are preserved for backwards compatibility. - (Contributed by Michiel W. Beijen in :gh:`102247`.) - - importlib ---------