From d26538163e31329833f43e0d39510b9be6d9d615 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Fri, 27 Dec 2013 14:06:15 -0500 Subject: whatsnew: importlib cleanup and source_to_code add; python partial impl. --- Doc/whatsnew/3.4.rst | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index 96f2ba8..c66ade8 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -627,6 +627,11 @@ multiple implementations of an operation that allows it to work with :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 @@ The *strict* argument of :class:`~html.parser.HTMLParser` is now deprecated. (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 @@ Deprecated Features 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 @@ in Python 3.4: * 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 @@ Changes in the Python API ``-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 -------------------- -- cgit v0.12