diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-12-31 21:04:50 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-12-31 21:04:50 (GMT) |
commit | 33ef1aeb1efd7a39c3ac8c4c771fde964ddd7807 (patch) | |
tree | 56fd02e27c151d33b6089b2694d79bfa4ca48021 /Doc | |
parent | 8b2d68245e5c6721fc7295588570d15830e14a34 (diff) | |
download | cpython-33ef1aeb1efd7a39c3ac8c4c771fde964ddd7807.zip cpython-33ef1aeb1efd7a39c3ac8c4c771fde964ddd7807.tar.gz cpython-33ef1aeb1efd7a39c3ac8c4c771fde964ddd7807.tar.bz2 |
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.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.4.rst | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index 5d0db50..aa42ee3 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -744,6 +744,15 @@ mmap objects can now be weakref'ed. (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 @@ try/except statement by code that only cares whether or not an error occurred. socket ------ -Socket objects have new methods to get or set their :ref:`inheritable flag -<fd_inheritance>`: +The socket module now supports the :data:`~socket.CAN_BCM` protocol on +platforms that support it. (Contributed by Brian Thorne in :issue:`15359`.) -* :meth:`socket.socket.get_inheritable`, :meth:`socket.socket.set_inheritable` +Socket objects have new methods to get or set their :ref:`inheritable flag +<fd_inheritance>`, :meth:`~socket.socket.get_inheritable` and +: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 |