[Python-checkins] cpython: whatsnew: mock called_with improvements, socket CAN_BCM support.

r.david.murray python-checkins at python.org
Tue Dec 31 23:03:10 CET 2013


http://hg.python.org/cpython/rev/879b83024509
changeset:   88236:879b83024509
user:        R David Murray <rdmurray at bitdance.com>
date:        Tue Dec 31 16:04:50 2013 -0500
summary:
  whatsnew: mock called_with improvements, socket CAN_BCM support.

Also reworded the other entries in the socket section of whatsnew, as
well as a couple of unrelated news entries.

files:
  Doc/whatsnew/3.4.rst |  23 +++++++++++++++++------
  Misc/NEWS            |   8 ++++----
  2 files changed, 21 insertions(+), 10 deletions(-)


diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -744,6 +744,15 @@
 (Contributed by Valerie Lambert in :issue:`4885`.)
 
 
+mock
+----
+
+:mod:`~unittest.mock` objects now inspect their specification signatures when
+matching calls, which means an argument can now be matched by either position
+or name, instead of only by position.  (Contributed by Antoine Pitrou in
+:issue:`17015`.)
+
+
 multiprocessing
 ---------------
 
@@ -894,14 +903,16 @@
 socket
 ------
 
+The socket module now supports the :data:`~socket.CAN_BCM` protocol on
+platforms that support it.  (Contributed by Brian Thorne in :issue:`15359`.)
+
 Socket objects have new methods to get or set their :ref:`inheritable flag
-<fd_inheritance>`:
+<fd_inheritance>`, :meth:`~socket.socket.get_inheritable` and
+:meth:`~socket.socket.set_inheritable`.
 
-* :meth:`socket.socket.get_inheritable`, :meth:`socket.socket.set_inheritable`
-
-The ``socket.AF_*`` and ``socket.SOCK_*`` constants are enumeration values,
-using the new :mod:`enum` module. This allows descriptive reporting during
-debugging, instead of seeing integer "magic numbers".
+The ``socket.AF_*`` and ``socket.SOCK_*`` constants are now enumeration values
+using the new :mod:`enum` module.  This allows meaningful names to be printed
+during debugging, instead of integer "magic numbers".
 
 
 ssl
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2474,12 +2474,12 @@
 
 - Issue #17132: Update symbol for "yield from" grammar changes.
 
-- Issue #17076: Make copying of xattrs more permissive of missing FS support.
+- Issue #17076: Make copying of xattrs more tolerant of missing FS support.
   Patch by Thomas Wouters.
 
-- Issue #17089: Expat parser now correctly works with string input not only when
-  an internal XML encoding is UTF-8 or US-ASCII.  It now accepts bytes and
-  strings larger than 2 GiB.
+- Issue #17089: Expat parser now correctly works with string input when the
+  internal XML encoding is not UTF-8 or US-ASCII.  It also now accepts bytes
+  and strings larger than 2 GiB.
 
 - Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
   parses nested mutating sequence.

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


More information about the Python-checkins mailing list