Commit 521ff2ef authored by Antoine Pitrou's avatar Antoine Pitrou

Add some whatsnew entries

parent e6184bd5
...@@ -569,8 +569,17 @@ Some smaller changes made to the core Python language are: ...@@ -569,8 +569,17 @@ Some smaller changes made to the core Python language are:
(:issue:`10516`) (:issue:`10516`)
* Raw bytes literals can now be written ``rb"..."`` as well as ``br"..."``.
(Contributed by Antoine Pitrou in :issue:`13748`.)
* :meth:`dict.setdefault` now does only one lookup for the given key, making
it atomic when used with built-in types.
(Contributed by Filip Gruszczyński in :issue:`13521`.)
.. XXX mention new error messages for passing wrong number of arguments to functions .. XXX mention new error messages for passing wrong number of arguments to functions
New and Improved Modules New and Improved Modules
======================== ========================
...@@ -851,6 +860,18 @@ The :mod:`math` module has a new function: ...@@ -851,6 +860,18 @@ The :mod:`math` module has a new function:
(Written by Mark Dickinson in :issue:`11888`). (Written by Mark Dickinson in :issue:`11888`).
multiprocessing
---------------
The new :func:`multiprocessing.connection.wait` function allows to poll
multiple objects (such as connections, sockets and pipes) with a timeout.
(Contributed by Richard Oudkerk in :issue:`12328`.)
:class:`multiprocessing.Connection` objects can now be transferred over
multiprocessing connections.
(Contributed by Richard Oudkerk in :issue:`4892`.)
nntplib nntplib
------- -------
...@@ -897,6 +918,16 @@ os ...@@ -897,6 +918,16 @@ os
:func:`~os.walk` except that it also yields file descriptors referring to the :func:`~os.walk` except that it also yields file descriptors referring to the
directories visited. This is especially useful to avoid symlink races. directories visited. This is especially useful to avoid symlink races.
* The new :func:`os.replace` function allows cross-platform renaming of a
file with overwriting the destination. With :func:`os.rename`, an existing
destination file is overwritten under POSIX, but raises an error under
Windows.
(Contributed by Antoine Pitrou in :issue:`8828`.)
* The new :func:`os.get_terminal_size` function queries the size of the
terminal attached to a file descriptor.
(Contributed by Zbigniew Jędrzejewski-Szmek in :issue:`13609`.)
* "at" functions (:issue:`4761`): * "at" functions (:issue:`4761`):
* :func:`~os.faccessat` * :func:`~os.faccessat`
...@@ -988,6 +1019,15 @@ pdb ...@@ -988,6 +1019,15 @@ pdb
are completed. (Contributed by Georg Brandl in :issue:`14210`) are completed. (Contributed by Georg Brandl in :issue:`14210`)
pickle
------
:class:`pickle.Pickler` objects now have an optional
:attr:`~pickle.Pickler.dispatch_table` attribute allowing to set per-pickler
reduction functions.
(Contributed by Richard Oudkerk in :issue:`14166`.)
pydoc pydoc
----- -----
...@@ -1034,6 +1074,16 @@ shutil ...@@ -1034,6 +1074,16 @@ shutil
path also specifying the user/group names and not only their numeric path also specifying the user/group names and not only their numeric
ids. (Contributed by Sandro Tosi in :issue:`12191`) ids. (Contributed by Sandro Tosi in :issue:`12191`)
* The new :func:`shutil.get_terminal_size` function returns the size of the
terminal window the interpreter is attached to.
(Contributed by Zbigniew Jędrzejewski-Szmek in :issue:`13609`.)
* Several functions now take an optional ``symlinks`` argument: when that
parameter is true, symlinks aren't dereferenced and the operation instead
acts on the symlink itself (or creates one, if relevant).
(Contributed by Hynek Schlawack in :issue:`12715`.)
signal signal
------ ------
...@@ -1129,6 +1179,11 @@ ssl ...@@ -1129,6 +1179,11 @@ ssl
(Contributed by Antoine Pitrou in :issue:`13634`) (Contributed by Antoine Pitrou in :issue:`13634`)
* Support has been added for the Next Procotol Negotiation extension using
the :meth:`ssl.SSLContext.set_npn_protocols` method.
(Contributed by Colin Marc in :issue:`14204`)
sys sys
--- ---
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment