@@ -1005,20 +1005,20 @@ collections
10051005-----------
10061006
10071007Addition of a new :class: `~collections.ChainMap ` class to allow treating a
1008- number of mappings as a single unit.
1009-
1010- (Written by Raymond Hettinger for :issue: `11089 `, made public in
1011- :issue: `11297 `)
1008+ number of mappings as a single unit. (Written by Raymond Hettinger for
1009+ :issue: `11089 `, made public in :issue: `11297 `)
10121010
10131011The abstract base classes have been moved in a new :mod: `collections.abc `
10141012module, to better differentiate between the abstract and the concrete
10151013collections classes. Aliases for ABCs are still present in the
1016- :mod: `collections ` module to preserve existing imports.
1017-
1018- (:issue: `11085 `)
1014+ :mod: `collections ` module to preserve existing imports. (:issue: `11085 `)
10191015
10201016.. XXX addition of __slots__ to ABCs not recorded here: internal detail
10211017
1018+ The :class: `~collections.Counter ` class now supports the unary ``+ `` and ``- ``
1019+ operators, as well as the in-place operators ``+= ``, ``-= ``, ``|= ``, and
1020+ ``&= ``. (Contributed by Raymond Hettinger in :issue: `13121 `.)
1021+
10221022
10231023contextlib
10241024----------
@@ -1806,6 +1806,12 @@ Orrù and Dan Boswell. :issue:`8739`)
18061806smtplib
18071807-------
18081808
1809+ The :class: `~smtplib.SMTP `, :class: `~smtplib.SMTP_SSL `, and
1810+ :class: `~smtplib.LMTP ` classes now accept a ``source_address `` keyword argument
1811+ to specify the ``(host, port) `` to use as the source address in the bind call
1812+ when creating the outgoing socket. (Contributed by Paulo Scardine in
1813+ :issue: `11281 `.)
1814+
18091815:class: `~smtplib.SMTP ` now supports the context manager protocol, allowing an
18101816``SMTP `` instance to be used in a ``with `` statement. (Contributed
18111817by Giampaolo Rodolà in :issue: `11289 `.)
0 commit comments