http://hg.python.org/cpython/rev/b5f85b093252
changeset: 88238:b5f85b093252
parent: 88236:879b83024509
parent: 88237:9c88280245e0
user: R David Murray <rdmurray(a)bitdance.com>
date: Tue Dec 31 17:34:40 2013 -0500
summary:
Merge: Clarify the wording of a news entry.
files:
Misc/NEWS | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2448,9 +2448,10 @@
- Issue #16564: Fixed regression relative to Python2 in the operation of
email.encoders.encode_noop when used with binary data.
-- Issue #10355: In SpooledTemporaryFile class mode, name, encoding and
- newlines properties now work for unrolled files. Obsoleted and never
- working on Python 3 xreadline method now removed.
+- Issue #10355: The mode, name, encoding and newlines properties now work on
+ SpooledTemporaryFile objects even when they have not yet rolled over.
+ Obsolete method xreadline (which has never worked in Python 3) has been
+ removed.
- Issue #16686: Fixed a lot of bugs in audioop module. Fixed crashes in
avgpp(), maxpp() and ratecv(). Fixed an integer overflow in add(), bias(),
--
Repository URL: http://hg.python.org/cpython
http://hg.python.org/cpython/rev/9c88280245e0
changeset: 88237:9c88280245e0
branch: 3.3
parent: 88232:8b4d36d0c090
user: R David Murray <rdmurray(a)bitdance.com>
date: Tue Dec 31 17:33:47 2013 -0500
summary:
Clarify the wording of a news entry.
files:
Misc/NEWS | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1497,9 +1497,10 @@
- Issue #16564: Fixed regression relative to Python2 in the operation of
email.encoders.encode_noop when used with binary data.
-- Issue #10355: In SpooledTemporaryFile class mode, name, encoding and
- newlines properties now work for unrolled files. Obsoleted and never
- working on Python 3 xreadline method now removed.
+- Issue #10355: The mode, name, encoding and newlines properties now work on
+ SpooledTemporaryFile objects even when they have not yet rolled over.
+ Obsolete method xreadline (which has never worked in Python 3) has been
+ removed.
- Issue #16686: Fixed a lot of bugs in audioop module. Fixed crashes in
avgpp(), maxpp() and ratecv(). Fixed an integer overflow in add(), bias(),
--
Repository URL: http://hg.python.org/cpython
http://hg.python.org/cpython/rev/879b83024509
changeset: 88236:879b83024509
user: R David Murray <rdmurray(a)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
http://hg.python.org/cpython/rev/171224d8ec68
changeset: 88235:171224d8ec68
user: R David Murray <rdmurray(a)bitdance.com>
date: Tue Dec 31 15:06:05 2013 -0500
summary:
whatsnew: random.getrandbits performance.
Also fix a NEWS file issue number error, and some spacing fixes in whatsnew.
files:
Doc/whatsnew/3.4.rst | 5 +++++
Misc/NEWS | 2 +-
2 files changed, 6 insertions(+), 1 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
@@ -453,6 +453,7 @@
.. _whatsnew-tracemalloc:
+
tracemalloc
-----------
@@ -902,6 +903,7 @@
using the new :mod:`enum` module. This allows descriptive reporting during
debugging, instead of seeing integer "magic numbers".
+
ssl
---
@@ -1198,6 +1200,9 @@
most cases. :class:`lzma.LZMAFile` has also been optimized. (Contributed by
Serhiy Storchaka and Nadeem Vawda in :issue:`16034`.)
+* :func:`random.getrandbits` is 20%-40% faster for small integers (the most
+ common use case). (Contributed by Serhiy Storchaka in :issue:`16674`).
+
Deprecated
==========
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2518,7 +2518,7 @@
byte-compiled file is a symlink or non-regular file as a warning that import
will not keep the file path type if it writes to that path.
-- Issue #180022: Have site.addpackage() consider already known paths even when
+- Issue #16972: Have site.addpackage() consider already known paths even when
none are explicitly passed in. Bug report and fix by Kirill.
- Issue #1602133: on Mac OS X a shared library build (``--enable-shared``)
--
Repository URL: http://hg.python.org/cpython
http://hg.python.org/cpython/rev/f6ce2284e8dd
changeset: 88234:f6ce2284e8dd
user: R David Murray <rdmurray(a)bitdance.com>
date: Tue Dec 31 13:45:38 2013 -0500
summary:
whatsnew: afic.open supports 'with'.
files:
Doc/library/aifc.rst | 4 ++--
Doc/whatsnew/3.4.rst | 5 +++++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/Doc/library/aifc.rst b/Doc/library/aifc.rst
--- a/Doc/library/aifc.rst
+++ b/Doc/library/aifc.rst
@@ -54,8 +54,8 @@
The :func:`.open` function may be used in a :keyword:`with` statement. When
the :keyword:`with` block completes, the :meth:`~aifc.close` method is called.
-.. versionchanged:: 3.4
- Support for the :keyword:`with` statement was added.
+ .. versionchanged:: 3.4
+ Support for the :keyword:`with` statement was added.
Objects returned by :func:`.open` when a file is opened for reading have the
following methods:
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
@@ -494,6 +494,11 @@
The :meth:`~aifc.getparams` method now returns a namedtuple rather than a
plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)
+:func:`aifc.open` now supports the context manager protocol: when used in a
+:keyword:`with` block, the :meth:`~aifc.aifc.close` method of the returned
+object will be called automatically at the end of the block. (Contributed by
+Serhiy Storchacha in :issue:`16486`.)
+
argparse
--------
--
Repository URL: http://hg.python.org/cpython
http://hg.python.org/cpython/rev/b35b204e5d0b
changeset: 88233:b35b204e5d0b
parent: 88231:751c50136ce3
parent: 88232:8b4d36d0c090
user: Zachary Ware <zachary.ware(a)gmail.com>
date: Tue Dec 31 12:10:24 2013 -0600
summary:
Merge with 3.3
files:
Doc/reference/datamodel.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1583,7 +1583,7 @@
program undefined. In the future, a check may be added to prevent this.
* Nonempty *__slots__* does not work for classes derived from "variable-length"
- built-in types such as :class:`int`, :class:`str` and :class:`tuple`.
+ built-in types such as :class:`int`, :class:`bytes` and :class:`tuple`.
* Any non-string iterable may be assigned to *__slots__*. Mappings may also be
used; however, in the future, special meaning may be assigned to the values
--
Repository URL: http://hg.python.org/cpython
http://hg.python.org/cpython/rev/8b4d36d0c090
changeset: 88232:8b4d36d0c090
branch: 3.3
parent: 88219:a43e96695203
user: Zachary Ware <zachary.ware(a)gmail.com>
date: Tue Dec 31 12:09:26 2013 -0600
summary:
str subclasses may have non-empty __slots__, bytes subclasses can't.
files:
Doc/reference/datamodel.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1571,7 +1571,7 @@
program undefined. In the future, a check may be added to prevent this.
* Nonempty *__slots__* does not work for classes derived from "variable-length"
- built-in types such as :class:`int`, :class:`str` and :class:`tuple`.
+ built-in types such as :class:`int`, :class:`bytes` and :class:`tuple`.
* Any non-string iterable may be assigned to *__slots__*. Mappings may also be
used; however, in the future, special meaning may be assigned to the values
--
Repository URL: http://hg.python.org/cpython
http://hg.python.org/cpython/rev/44b6b492c7e3
changeset: 88230:44b6b492c7e3
user: R David Murray <rdmurray(a)bitdance.com>
date: Tue Dec 31 11:17:21 2013 -0500
summary:
whatsnew: epoll supports with.
Also reworded the description of the feature in the docs.
files:
Doc/library/select.rst | 11 ++++++++---
Doc/whatsnew/3.4.rst | 9 +++++++++
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/Doc/library/select.rst b/Doc/library/select.rst
--- a/Doc/library/select.rst
+++ b/Doc/library/select.rst
@@ -58,9 +58,14 @@
which can be used as Edge or Level Triggered interface for I/O
events. *sizehint* is deprecated and completely ignored. *flags* can be set
to :const:`EPOLL_CLOEXEC`, which causes the epoll descriptor to be closed
- automatically when :func:`os.execve` is called. See section
- :ref:`epoll-objects` below for the methods supported by epolling objects.
- They also support the :keyword:`with` statement.
+ automatically when :func:`os.execve` is called.
+
+ See the :ref:`epoll-objects` section below for the methods supported by
+ epolling objects.
+
+ ``epoll`` objects support the context management protocol: when used in a
+ :keyword:`with` statement, the new file descriptor is automatically closed
+ at the end of the block.
The new file descriptor is :ref:`non-inheritable <fd_inheritance>`.
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
@@ -851,6 +851,15 @@
(Contributed by Christian Heimes in :issue:`16595` and :issue:`19324`.)
+select
+------
+
+:class:`~select.epoll` objects now support the context management protocol.
+When used in a :keyword:`with` statement, the :meth:`~select.epoll.close`
+method will be called automatically at the end of the block. (Contributed
+by Serhiy Storchaka in :issue:`16488`.)
+
+
shelve
------
--
Repository URL: http://hg.python.org/cpython