[Python-checkins] cpython (merge 3.3 -> default): Merge: Add some missing stuff to whatsnew.

r.david.murray python-checkins at python.org
Sun Sep 30 23:30:23 CEST 2012


http://hg.python.org/cpython/rev/5876a24b613a
changeset: 79348:5876a24b613a
parent: 79346:b392a39970bb
parent: 79347:51175f1e67fd
user: R David Murray <rdmurray at bitdance.com>
date: Sun Sep 30 17:29:54 2012 -0400
summary:
 Merge: Add some missing stuff to whatsnew.
files:
 Doc/whatsnew/3.3.rst | 62 ++++++++++++++++++++++++-------
 Misc/NEWS | 2 +-
 2 files changed, 48 insertions(+), 16 deletions(-)
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -797,7 +797,9 @@
 (Contributed by Petri Lehtinen in :issue:`12170`)
 
 * New methods have been added to :class:`list` and :class:`bytearray`:
- ``copy()`` and ``clear()``. (:issue:`10516`)
+ ``copy()`` and ``clear()`` (:issue:`10516`). Consequently,
+ :class:`~collections.abc.MutableSequence` now also defines a
+ :meth:`~collections.abc.MutableSequence.clear` method (:issue:`11388`).
 
 * Raw bytes literals can now be written ``rb"..."`` as well as ``br"..."``.
 
@@ -918,6 +920,10 @@
 
 (Contributed by Darren Dale in :issue:`11610`)
 
+:meth:`abc.ABCMeta.register` now returns the registered subclass, which means
+it can now be used as a class decorator (:issue:`10868`).
+
+
 array
 -----
 
@@ -1057,7 +1063,8 @@
 --------
 
 * Equality comparisons between naive and aware :class:`~datetime.datetime`
- instances now return :const:`False` instead of raising :exc:`TypeError`.
+ instances now return :const:`False` instead of raising :exc:`TypeError`
+ (:issue:`15006`).
 * New :meth:`datetime.datetime.timestamp` method: Return POSIX timestamp
 corresponding to the :class:`~datetime.datetime` instance.
 * The :meth:`datetime.datetime.strftime` method supports formatting years
@@ -1322,18 +1329,20 @@
 ftplib
 ------
 
+* :class:`ftplib.FTP` now accepts a ``source_address`` keyword argument to
+ specify the ``(host, port)`` to use as the source address in the bind call
+ when creating the outgoing socket. (Contributed by Giampaolo Rodolà
+ in :issue:`8594`.)
+
 * The :class:`~ftplib.FTP_TLS` class now provides a new
 :func:`~ftplib.FTP_TLS.ccc` function to revert control channel back to
- plaintext. This can be useful to take advantage of firewalls that know how to
- handle NAT with non-secure FTP without opening fixed ports.
-
- (Contributed by Giampaolo Rodolà in :issue:`12139`)
+ plaintext. This can be useful to take advantage of firewalls that know how
+ to handle NAT with non-secure FTP without opening fixed ports. (Contributed
+ by Giampaolo Rodolà in :issue:`12139`)
 
 * Added :meth:`ftplib.FTP.mlsd` method which provides a parsable directory
 listing format and deprecates :meth:`ftplib.FTP.nlst` and
- :meth:`ftplib.FTP.dir`.
-
- (Contributed by Giampaolo Rodolà in :issue:`11072`)
+ :meth:`ftplib.FTP.dir`. (Contributed by Giampaolo Rodolà in :issue:`11072`)
 
 gc
 --
@@ -1438,6 +1447,10 @@
 multiprocessing connections.
 (Contributed by Richard Oudkerk in :issue:`4892`.)
 
+:class:`multiprocessing.Process` now accepts a ``daemon`` keyword argument
+to override the default behavior of inheriting the ``daemon`` flag from
+the parent process (:issue:`6064`).
+
 
 nntplib
 -------
@@ -1640,23 +1653,22 @@
 shutil
 ------
 
-* The :mod:`shutil` module has these new fuctions:
+* New functions:
 
 * :func:`~shutil.disk_usage`: provides total, used and free disk space
 statistics. (Contributed by Giampaolo Rodolà in :issue:`12442`)
 * :func:`~shutil.chown`: allows one to change user and/or group of the given
 path also specifying the user/group names and not only their numeric
 ids. (Contributed by Sandro Tosi in :issue:`12191`)
+ * :func:`shutil.get_terminal_size`: returns the size of the terminal window
+ to which the interpreter is attached. (Contributed by Zbigniew
+ Jędrzejewski-Szmek in :issue:`13609`.)
 
 * :func:`~shutil.copy2` and :func:`~shutil.copystat` now preserve file
 timestamps with nanosecond precision on platforms that support it.
 They also preserve file "extended attributes" on Linux. (Contributed
 by Larry Hastings in :issue:`14127` and :issue:`15238`.)
 
-* 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).
@@ -1736,6 +1748,10 @@
 (http://en.wikipedia.org/wiki/Reliable_Datagram_Sockets and
 http://oss.oracle.com/projects/rds/).
 
+* New function :func:`~socket.sethostname` allows the hostname to be set
+ on unix systems if the calling process has sufficient privileges.
+ (Contributed by Ross Lagerwall in :issue:`10866`.)
+
 
 ssl
 ---
@@ -1811,6 +1827,15 @@
 
 (:issue:`13857`)
 
+
+threading
+---------
+
+The :class:`threading.Thread` constructor now accepts a ``daemon`` keyword
+argument to override the default behavior of inheriting the ``deamon`` flag
+value from the parent thread (:issue:`6064`).
+
+
 time
 ----
 
@@ -1956,6 +1981,8 @@
 Windows 2000 and Windows platforms which set ``COMSPEC`` to ``command.com``
 are no longer supported due to maintenance burden.
 
+OSF support, which was deprecated in 3.2, has been completely removed.
+
 
 Deprecated Python modules, functions and methods
 ------------------------------------------------
@@ -2153,7 +2180,12 @@
 * :func:`email.utils.formataddr` now does the correct content transfer
 encoding when passed non-``ASCII`` display names. Any code that depended on
 the previous buggy behavior that preserved the non-``ASCII`` unicode in the
- formatted output string will need to be changed.
+ formatted output string will need to be changed (:issue:`1690608`).
+
+* :meth:`poplib.POP3.quit` may now raise protocol errors like all other
+ ``poplib`` methods. Code that assumes ``quit`` does not raise
+ :exc:`poplib.error_proto` errors may need to be changed if errors on ``quit``
+ are encountered by a particular application (:issue:`11291`).
 
 
 Porting C code
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -3869,7 +3869,7 @@
 functions (BSD and OS X). Also add new stat file flags for OS X
 (UF_HIDDEN and UF_COMPRESSED).
 
-- Issue #10645: Installing Python does no longer create a
+- Issue #10645: Installing Python no longer creates a
 Python-X.Y.Z-pyX.Y.egg-info file in the lib-dynload directory.
 
 - Do not accidentally include the directory containing sqlite.h twice when
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /