Skip to content

Commit 445d69c

Browse files
committed
More additions to whatsnew.
1 parent 842ca5f commit 445d69c

File tree

2 files changed

+60
-20
lines changed

2 files changed

+60
-20
lines changed

Doc/whatsnew/3.3.rst

Lines changed: 56 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,6 +1325,11 @@ way it ought to: your application works with unicode strings, and the email
13251325
package transparently encodes and decodes the unicode to and from the RFC
13261326
standard Content Transfer Encodings.
13271327

1328+
Other API Changes
1329+
~~~~~~~~~~~~~~~~~
1330+
1331+
Added :class:`email.parser.BytesHeaderParser`.
1332+
13281333

13291334
ftplib
13301335
------
@@ -1371,6 +1376,16 @@ used by :class:`~html.parser.HTMLParser`.
13711376
(Contributed by Ezio Melotti in :issue:`11113` and :issue:`15156`)
13721377

13731378

1379+
http
1380+
----
1381+
1382+
:class:`http.server.BaseHTTPRequestHandler` now buffers the headers and writes
1383+
them all at once when :meth:`~http.server.BaseHTTPRequestHandler.end_headers` is
1384+
called. A new method :meth:`~http.server.BaseHTTPRequestHandler.flush_headers`
1385+
can be used to directly manage when the accumlated headers are sent.
1386+
(Contributed by Andrew Schaaf in :issue:`3709`.)
1387+
1388+
13741389
html.parser
13751390
-----------
13761391

@@ -1385,6 +1400,7 @@ are also available on the latest bug fix releases of Python 2.7/3.2.
13851400
:issue:`755670`, :issue:`13357`, :issue:`12629`, :issue:`1200313`,
13861401
:issue:`670664`, :issue:`13273`, :issue:`12888`, :issue:`7311`)
13871402

1403+
13881404
imaplib
13891405
-------
13901406

@@ -1427,6 +1443,20 @@ written on the :class:`~io.TextIOWrapper` object is immediately handled to its
14271443
underlying binary buffer.
14281444

14291445

1446+
itertools
1447+
---------
1448+
1449+
:func:`~itertools.accumulate` now takes an optional ``func`` argument for
1450+
providing a user-supplied binary function.
1451+
1452+
1453+
logging
1454+
-------
1455+
1456+
:func:`~logging.basicConfig` now supports an optional ``handlers`` argument
1457+
taking an iterable of handlers to be added to the root logger.
1458+
1459+
14301460
math
14311461
----
14321462

@@ -1775,6 +1805,15 @@ socket
17751805
(Contributed by Ross Lagerwall in :issue:`10866`.)
17761806

17771807

1808+
sqlite3
1809+
-------
1810+
1811+
New :class:`sqlite3.Connection` method
1812+
:meth:`~sqlite3.Connection.set_trace_callback` can be used to capture a trace of
1813+
all sql commands processed by sqlite. (Contributed by Torsten Landschoff
1814+
in :issue:`11688`.)
1815+
1816+
17781817
ssl
17791818
---
17801819

@@ -1788,41 +1827,37 @@ ssl
17881827

17891828
* The :mod:`ssl` module now exposes a finer-grained exception hierarchy
17901829
in order to make it easier to inspect the various kinds of errors.
1791-
17921830
(Contributed by Antoine Pitrou in :issue:`11183`)
17931831

17941832
* :meth:`~ssl.SSLContext.load_cert_chain` now accepts a *password* argument
17951833
to be used if the private key is encrypted.
1796-
17971834
(Contributed by Adam Simpkins in :issue:`12803`)
17981835

17991836
* Diffie-Hellman key exchange, both regular and Elliptic Curve-based, is
18001837
now supported through the :meth:`~ssl.SSLContext.load_dh_params` and
18011838
:meth:`~ssl.SSLContext.set_ecdh_curve` methods.
1802-
18031839
(Contributed by Antoine Pitrou in :issue:`13626` and :issue:`13627`)
18041840

18051841
* SSL sockets have a new :meth:`~ssl.SSLSocket.get_channel_binding` method
18061842
allowing the implementation of certain authentication mechanisms such as
1807-
SCRAM-SHA-1-PLUS.
1808-
1809-
(Contributed by Jacek Konieczny in :issue:`12551`)
1843+
SCRAM-SHA-1-PLUS. (Contributed by Jacek Konieczny in :issue:`12551`)
18101844

18111845
* You can query the SSL compression algorithm used by an SSL socket, thanks
18121846
to its new :meth:`~ssl.SSLSocket.compression` method.
1813-
18141847
(Contributed by Antoine Pitrou in :issue:`13634`)
18151848

18161849
* Support has been added for the Next Procotol Negotiation extension using
18171850
the :meth:`ssl.SSLContext.set_npn_protocols` method.
1818-
18191851
(Contributed by Colin Marc in :issue:`14204`)
18201852

18211853
* SSL errors can now be introspected more easily thanks to
18221854
:attr:`~ssl.SSLError.library` and :attr:`~ssl.SSLError.reason` attributes.
1823-
18241855
(Contributed by Antoine Pitrou in :issue:`14837`)
18251856

1857+
* The :func:`~ssl.get_server_certificate` function now supports IPv6.
1858+
(Contributed by Charles-François Natali in :issue:`11811`.)
1859+
1860+
18261861
stat
18271862
----
18281863

@@ -1837,7 +1872,7 @@ subprocess
18371872
----------
18381873

18391874
Command strings can now be bytes objects on posix platforms. (Contributed by
1840-
Victor Stiner in :issue:`8513`.)
1875+
Victor Stinner in :issue:`8513`.)
18411876

18421877
A new constant :data:`~subprocess.DEVNULL` allows suppressing output in a
18431878
platform-independent fashion. (Contributed by Ross Lagerwall in
@@ -1848,18 +1883,15 @@ sys
18481883
---
18491884

18501885
The :mod:`sys` module has a new :data:`~sys.thread_info` :term:`struct
1851-
sequence` holding informations about the thread implementation.
1852-
1853-
(:issue:`11223`)
1886+
sequence` holding informations about the thread implementation
1887+
(:issue:`11223`).
18541888

18551889
textwrap
18561890
--------
18571891

18581892
The :mod:`textwrap` module has a new :func:`~textwrap.indent` that makes
18591893
it straightforward to add a common prefix to selected lines in a block
1860-
of text.
1861-
1862-
(:issue:`13857`)
1894+
of text (:issue:`13857`).
18631895

18641896

18651897
threading
@@ -2222,6 +2254,14 @@ Porting Python code
22222254
:exc:`poplib.error_proto` errors may need to be changed if errors on ``quit``
22232255
are encountered by a particular application (:issue:`11291`).
22242256

2257+
* The ``strict`` argument to :class:`email.parser.Parser`, deprecated since
2258+
Python 2.4, has finally been removed.
2259+
2260+
* The deprecated method ``unittest.TestCase.assertSameElements`` has been
2261+
removed.
2262+
2263+
* The deprecated variable ``time.accept2dyear`` has been removed.
2264+
22252265

22262266
Porting C code
22272267
--------------

Misc/NEWS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3386,9 +3386,9 @@ Library
33863386
- Issue #12011: signal.signal() and signal.siginterrupt() raise an OSError,
33873387
instead of a RuntimeError: OSError has an errno attribute.
33883388

3389-
- Issue #3709: a flush_headers method to BaseHTTPRequestHandler which manages
3390-
the sending of headers to output stream and flushing the internal headers
3391-
buffer. Patch contribution by Andrew Schaaf
3389+
- Issue #3709: add a flush_headers method to BaseHTTPRequestHandler, which
3390+
manages the sending of headers to output stream and flushing the internal
3391+
headers buffer. Patch contribution by Andrew Schaaf
33923392

33933393
- Issue #11743: Rewrite multiprocessing connection classes in pure Python.
33943394

@@ -4982,7 +4982,7 @@ Library
49824982

49834983
- Issue #3709: BaseHTTPRequestHandler will buffer the headers and write to
49844984
output stream only when end_headers is invoked. This is a speedup and an
4985-
internal optimization. Patch by endian.
4985+
internal optimization. Patch by Andrew Shaaf.
49864986

49874987
- Issue #10220: Added inspect.getgeneratorstate. Initial patch by Rodolpho
49884988
Eckhardt.

0 commit comments

Comments
 (0)