[Python-checkins] cpython (3.3): whatsnew updates for smtplib and collections.Counter.

r.david.murray python-checkins at python.org
Sat Oct 6 22:31:00 CEST 2012


http://hg.python.org/cpython/rev/a6706d12e6b5
changeset:   79538:a6706d12e6b5
branch:      3.3
parent:      79536:98070a6a7dba
user:        R David Murray <rdmurray at bitdance.com>
date:        Sat Oct 06 16:29:14 2012 -0400
summary:
  whatsnew updates for smtplib and collections.Counter.

files:
  Doc/whatsnew/3.3.rst |  20 +++++++++++++-------
  Misc/NEWS            |   5 +++--
  2 files changed, 16 insertions(+), 9 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
@@ -1005,20 +1005,20 @@
 -----------
 
 Addition of a new :class:`~collections.ChainMap` class to allow treating a
-number of mappings as a single unit.
-
-(Written by Raymond Hettinger for :issue:`11089`, made public in
-:issue:`11297`)
+number of mappings as a single unit.  (Written by Raymond Hettinger for
+:issue:`11089`, made public in :issue:`11297`)
 
 The abstract base classes have been moved in a new :mod:`collections.abc`
 module, to better differentiate between the abstract and the concrete
 collections classes.  Aliases for ABCs are still present in the
-:mod:`collections` module to preserve existing imports.
-
-(:issue:`11085`)
+:mod:`collections` module to preserve existing imports.  (:issue:`11085`)
 
 .. XXX addition of __slots__ to ABCs not recorded here: internal detail
 
+The :class:`~collections.Counter` class now supports the unary ``+`` and ``-``
+operators, as well as the in-place operators ``+=``, ``-=``, ``|=``, and
+``&=``.  (Contributed by Raymond Hettinger in :issue:`13121`.)
+
 
 contextlib
 ----------
@@ -1806,6 +1806,12 @@
 smtplib
 -------
 
+The :class:`~smtplib.SMTP`, :class:`~smtplib.SMTP_SSL`, and
+:class:`~smtplib.LMTP` classes now accept 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 Paulo Scardine in
+:issue:`11281`.)
+
 :class:`~smtplib.SMTP` now supports the context manager protocol, allowing an
 ``SMTP`` instance to be used in a ``with`` statement.  (Contributed
 by Giampaolo Rodolà in :issue:`11289`.)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -3005,8 +3005,9 @@
 - Issue #12540: Prevent zombie IDLE processes on Windows due to changes
   in os.kill().
 
-- Add support for unary plus and unary minus to collections.Counter().
-  Issue #13121: Also add support for inplace math operators.
+- Issue #13121: add support for inplace math operators to collections.Counter.
+
+- Add support for unary plus and unary minus to collections.Counter.
 
 - Issue #12683: urlparse updated to include svn as schemes that uses relative
   paths. (svn from 1.5 onwards support relative path).

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list