summaryrefslogtreecommitdiff
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-12-23 16:28:28 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2014-12-23 16:28:28 +0200
commite4db76967d7fb0ec0f5a98a9603ca5563f4a8320 (patch)
tree5937da66f842e1d62f5b31e9bde2d225a68ae191 /Doc/whatsnew
parentab47932212c363e05365506525aac9b008e70144 (diff)
downloadcpython-git-e4db76967d7fb0ec0f5a98a9603ca5563f4a8320.tar.gz
Issue #21793: Added http.HTTPStatus enums (i.e. HTTPStatus.OK,
HTTPStatus.NOT_FOUND). Patch by Demian Brecht.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.5.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index 658c975303..def4addd11 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -451,6 +451,11 @@ Changes in the Python API
**without** caching ``None`` in :data:`sys.path_importer_cache` which is
different than the typical case (:issue:`22834`).
+* HTTP status code and messages from `http.client` and `http.server` were
+ refactored into a common :class:`~http.HTTPStatus` enum. The values in
+ `http.client` and `http.server` remain available for backwards compatibility.
+ (Contributed by Demian Brecht in :issue:`21793`.)
+
Changes in the C API
--------------------