diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2014-12-23 16:28:28 +0200 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-12-23 16:28:28 +0200 |
| commit | e4db76967d7fb0ec0f5a98a9603ca5563f4a8320 (patch) | |
| tree | 5937da66f842e1d62f5b31e9bde2d225a68ae191 /Doc/whatsnew | |
| parent | ab47932212c363e05365506525aac9b008e70144 (diff) | |
| download | cpython-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.rst | 5 |
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 -------------------- |
