diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-10-06 20:29:14 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-10-06 20:29:14 (GMT) |
commit | a21e51570d1f8bc00d7d4a0edb71f29c27bed3b7 (patch) | |
tree | 726cf589b515ff1ffddbf73bb12e5ce4ac53ec2f /Doc/whatsnew/3.3.rst | |
parent | 344174dc776243019f3cbdc2f57c8d808aea4450 (diff) | |
download | cpython-a21e51570d1f8bc00d7d4a0edb71f29c27bed3b7.zip cpython-a21e51570d1f8bc00d7d4a0edb71f29c27bed3b7.tar.gz cpython-a21e51570d1f8bc00d7d4a0edb71f29c27bed3b7.tar.bz2 |
whatsnew updates for smtplib and collections.Counter.
Diffstat (limited to 'Doc/whatsnew/3.3.rst')
-rw-r--r-- | Doc/whatsnew/3.3.rst | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index 7dee076..0f13088 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -1005,20 +1005,20 @@ collections ----------- 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 @@ Orrù and Dan Boswell. :issue:`8739`) 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`.) |