summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAlexandru Mărășteanu <alexei@users.noreply.github.com>2022-08-30 18:11:44 (GMT)
committerGitHub <noreply@github.com>2022-08-30 18:11:44 (GMT)
commit0ed778835d34bc1f39d2c6cdbc0c1709f6bcfd61 (patch)
tree30e5ed320372a5d705b156f6b3eb5de335e575be /Misc
parent13c309f1101dc86ca0138f239d45cb009d0e898d (diff)
downloadcpython-0ed778835d34bc1f39d2c6cdbc0c1709f6bcfd61.zip
cpython-0ed778835d34bc1f39d2c6cdbc0c1709f6bcfd61.tar.gz
cpython-0ed778835d34bc1f39d2c6cdbc0c1709f6bcfd61.tar.bz2
gh-95149: Enhance `http.HTTPStatus` with properties that indicate the HTTP status category (GH-95453)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-08-07-14-56-23.gh-issue-95149.U0c6Ib.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-08-07-14-56-23.gh-issue-95149.U0c6Ib.rst b/Misc/NEWS.d/next/Library/2022-08-07-14-56-23.gh-issue-95149.U0c6Ib.rst
new file mode 100644
index 0000000..6393444
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-08-07-14-56-23.gh-issue-95149.U0c6Ib.rst
@@ -0,0 +1,2 @@
+The :class:`HTTPStatus <http.HTTPStatus>` enum offers a couple of properties
+to indicate the HTTP status category e.g. ``HTTPStatus.OK.is_success``.