summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.4.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-01-03 18:03:00 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-01-03 18:03:00 (GMT)
commita475a8d313805bb84affcba8da7c8e82319d0761 (patch)
tree182c364fb0546cb8d7f8441dcc48515a66699758 /Doc/whatsnew/3.4.rst
parentfa4e68d42582a0fb61baac98ac10b3fbf43f8751 (diff)
downloadcpython-a475a8d313805bb84affcba8da7c8e82319d0761.zip
cpython-a475a8d313805bb84affcba8da7c8e82319d0761.tar.gz
cpython-a475a8d313805bb84affcba8da7c8e82319d0761.tar.bz2
whatsnew: http.server send_error explain parameter.
Also rewrote the send_error description for clarity and correct English.
Diffstat (limited to 'Doc/whatsnew/3.4.rst')
-rw-r--r--Doc/whatsnew/3.4.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index 7d7c2b3..6681eba 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -684,6 +684,18 @@ The *strict* argument of :class:`~html.parser.HTMLParser` is now deprecated.
(Contributed by Ezio Melotti in :issue:`15114`)
+http
+----
+
+:meth:`~http.server.BaseHTTPRequestHandler.send_error` now accepts an
+optional additional *exaplain* parameter which can be used to provide an
+extended error description, overriding the hardcoded default if there is one.
+This extended error description will be formatted using the
+:attr:`~http.server.HTTP.error_message_format` attribute and sent as the body
+of the error response. (Contributed by Karl Cow in :issue:`12921`.)
+
+
+
importlib
---------