[Python-checkins] cpython: whatsnew: from __future__ string exception, attribute UTF-32 decoder speedup.

r.david.murray python-checkins at python.org
Sun Jan 5 00:29:43 CET 2014


http://hg.python.org/cpython/rev/87decd548a56
changeset:   88304:87decd548a56
user:        R David Murray <rdmurray at bitdance.com>
date:        Sat Jan 04 18:07:20 2014 -0500
summary:
  whatsnew: from __future__ string exception, attribute UTF-32 decoder speedup.

And more news entry clarifications.

files:
  Doc/whatsnew/3.4.rst |  9 ++++++++-
  Misc/NEWS            |  8 ++++----
  2 files changed, 12 insertions(+), 5 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
@@ -1234,7 +1234,8 @@
 Significant Optimizations
 =========================
 
-* The UTF-32 decoder is now 3x to 4x faster.
+* The UTF-32 decoder is now 3x to 4x faster.  (Contributed by Serhiy Storchaka
+  in :issue:`14625`.)
 
 * The cost of hash collisions for sets is now reduced.  Each hash table
   probe now checks a series of consecutive, adjacent key/hash pairs before
@@ -1437,6 +1438,12 @@
   keyword.  If you've been paying attention to deprecation warnings your code
   should already be specifying any additional arguments via keywords.
 
+* Strings between ``from __future__ import ...`` statements now *always* raise
+  a :exc:`SyntaxError`.  Previously if there was no leading docstring, an
+  interstitial string would sometimes be ignored.  This brings CPython into
+  compliance with the language spec; Jython and PyPy already were.
+  (:issue:`17434`).
+
 
 Changes in the C API
 --------------------
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2243,10 +2243,10 @@
   calls.
 
 - Issue #17566: Make importlib.abc.Loader.module_repr() optional instead of an
-  abstractmethod and raising NotImplementedError so as to be ignored by default.
-
-- Issue #17678: Remove the use of deprecated method in http/cookiejar.py.
-  Changing the usage of get_origin_req_host() to origin_req_host.
+  abstractmethod; now it raises NotImplementedError so as to be ignored by default.
+
+- Issue #17678: Remove the use of deprecated method in http/cookiejar.py by
+  changing the call to get_origin_req_host() to origin_req_host.
 
 - Issue #17666: Fix reading gzip files with an extra field.
 

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


More information about the Python-checkins mailing list