[Python-checkins] cpython: whatsnew: importlib cleanup and source_to_code add; python partial impl.

r.david.murray python-checkins at python.org
Fri Dec 27 20:07:23 CET 2013


http://hg.python.org/cpython/rev/9d9c2b4850fc
changeset: 88208:9d9c2b4850fc
user: R David Murray <rdmurray at bitdance.com>
date: Fri Dec 27 14:06:15 2013 -0500
summary:
 whatsnew: importlib cleanup and source_to_code add; python partial impl.
files:
 Doc/whatsnew/3.4.rst | 23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 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
@@ -627,6 +627,11 @@
 :pep:`443` -- Single-dispatch generic functions
 PEP written and implemented by Łukasz Langa.
 
+A pure-python version of the :func:`~functools.partial` function is now in the
+stdlib; in CPython it is overridden by the C accelerated version, but it is
+available for other implementations to use. (Contributed by Brian Thorne in
+:issue:`12428`.)
+
 
 gc
 --
@@ -667,6 +672,16 @@
 (Contributed by Ezio Melotti in :issue:`15114`)
 
 
+importlib
+---------
+
+The :class:`~importlib.abc.InspectLoader` ABC defines a new method,
+:meth:`~importlib.abc.InspectLoader.source_to_code` that accepts source
+data and a path and returns a code object. The default implementation
+is equivalent to ``compile(data, path, 'exec', dont_inherit=True)``.
+(Contributed by Eric Snow and Brett Cannon in :issue:`15627`.)
+
+
 inspect
 -------
 
@@ -1208,8 +1223,8 @@
 Removed
 =======
 
-The following previously deprecated APIs and features have been removed
-in Python 3.4:
+The following obsolete and previously deprecated APIs and features have been
+removed in Python 3.4:
 
 * Support for the following operating systems has been removed from the source
 and build tools:
@@ -1228,6 +1243,9 @@
 * The ``PyThreadState.tick_counter`` field has been removed; its value has
 been meaningless since Python 3.2, when the "new GIL" was introduced.
 
+* ``PyLoader`` and ``PyPycLoader`` have been removed from :mod:`importlib`.
+ (Contributed by Taras Lyapun in :issue:`15641`.)
+
 
 Porting to Python 3.4
 =====================
@@ -1294,6 +1312,7 @@
 ``-m`` with the interpreter (this does not influence when the path to a file
 is specified on the command-line).
 
+
 Changes in the C API
 --------------------
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /