Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ecc5ba

Browse files
committed
Merge: More whatsnew updates. Also move a C-API NEWS item out of library section.
2 parents e24728b + fd74096 commit 7ecc5ba

2 files changed

Lines changed: 30 additions & 5 deletions

File tree

Doc/whatsnew/3.3.rst

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,14 @@ ASCII-only Unicode strings are now accepted by the decoding functions of the
940940
modern interface. For example, ``base64.b64decode('YWJj')`` returns ``b'abc'``.
941941

942942

943+
binascii
944+
--------
945+
946+
In addition to the binary objects they normally accept, the ``a2b_`` functions
947+
now all also accept ASCII-only strings as input. (Contributed by Antoine
948+
Pitrou in :issue:`13637`.)
949+
950+
943951
bz2
944952
---
945953

@@ -1403,6 +1411,11 @@ can be used to directly manage when the accumlated headers are sent.
14031411
:class:`http.server` now produces valid ``HTML 4.01 strict`` output.
14041412
(Contributed by Ezio Melotti in :issue:`13295`.)
14051413

1414+
:class:`http.client.HTTPResponse` now has a
1415+
:meth:`~http.client.HTTPResponse.readinto` method, which means it can be used
1416+
as a :class:`io.RawIOBase` class. (Contributed by John Kuhn in
1417+
:issue:`13464`.)
1418+
14061419

14071420
html
14081421
----
@@ -1912,7 +1925,8 @@ ssl
19121925
SCRAM-SHA-1-PLUS. (Contributed by Jacek Konieczny in :issue:`12551`)
19131926

19141927
* You can query the SSL compression algorithm used by an SSL socket, thanks
1915-
to its new :meth:`~ssl.SSLSocket.compression` method.
1928+
to its new :meth:`~ssl.SSLSocket.compression` method. The new attribute
1929+
:attr:`~ssl.OP_NO_COMPRESSION` can be used to disable compression.
19161930
(Contributed by Antoine Pitrou in :issue:`13634`)
19171931

19181932
* Support has been added for the Next Procotol Negotiation extension using
@@ -1926,6 +1940,10 @@ ssl
19261940
* The :func:`~ssl.get_server_certificate` function now supports IPv6.
19271941
(Contributed by Charles-François Natali in :issue:`11811`.)
19281942

1943+
* New attribute :attr:`~ssl.OP_CIPHER_SERVER_PREFERENCE` allows setting
1944+
SSLv3 server sockets to use the server's cipher ordering preference rather
1945+
than the client's (:issue:`13635`).
1946+
19291947

19301948
stat
19311949
----
@@ -1964,6 +1982,13 @@ sequence` holding informations about the thread implementation
19641982
(:issue:`11223`).
19651983

19661984

1985+
tarfile
1986+
-------
1987+
1988+
:mod:`tarfile` now supports ``lzma`` encoding via the :mod:`lzma` module.
1989+
(Contributed by Lars Gustäbel in :issue:`5689`.)
1990+
1991+
19671992
tempfile
19681993
--------
19691994

Misc/HISTORY

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,6 +1942,10 @@ Core and Builtins
19421942

19431943
- PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.
19441944

1945+
- Issue #13560: Add PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize()
1946+
and PyUnicode_EncodeLocale() functions to the C API to decode/encode from/to
1947+
the current locale encoding.
1948+
19451949
- Add internal API for static strings (_Py_identifier et al.).
19461950

19471951
- Issue #13063: the Windows error ERROR_NO_DATA (numbered 232 and described
@@ -2515,10 +2519,6 @@ Library
25152519
- Issue #13560: os.strerror() now uses the current locale encoding instead of
25162520
UTF-8.
25172521

2518-
- Issue #13560: Add PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize()
2519-
and PyUnicode_EncodeLocale() functions to the C API to decode/encode from/to
2520-
the current locale encoding.
2521-
25222522
- Issue #8373: The filesystem path of AF_UNIX sockets now uses the filesystem
25232523
encoding and the surrogateescape error handler, rather than UTF-8. Patch
25242524
by David Watson.

0 commit comments

Comments
 (0)