diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-12-27 19:06:15 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-12-27 19:06:15 (GMT) |
commit | d26538163e31329833f43e0d39510b9be6d9d615 (patch) | |
tree | 360c23d971bc596562b0385e25a687c49787634a /Doc | |
parent | d7bc99ef4c80af18d3cc9005d038022168705415 (diff) | |
download | cpython-d26538163e31329833f43e0d39510b9be6d9d615.zip cpython-d26538163e31329833f43e0d39510b9be6d9d615.tar.gz cpython-d26538163e31329833f43e0d39510b9be6d9d615.tar.bz2 |
whatsnew: importlib cleanup and source_to_code add; python partial impl.
Diffstat (limited to 'Doc')
-rw-r--r-- | 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 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 -------------------- |