summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-05-09 16:28:22 (GMT)
committerBrett Cannon <brett@python.org>2014-05-09 16:28:22 (GMT)
commit6eaac13c92750afddebf22fc0a57e3f40e9d1a2f (patch)
treefb9563cccb0a04691fdbec1cc3dd5a41b1b311bb /Doc/whatsnew
parenta237a987539aed6ba28115c2e932b205c592be88 (diff)
downloadcpython-6eaac13c92750afddebf22fc0a57e3f40e9d1a2f.zip
cpython-6eaac13c92750afddebf22fc0a57e3f40e9d1a2f.tar.gz
cpython-6eaac13c92750afddebf22fc0a57e3f40e9d1a2f.tar.bz2
Issue #21156: importlib.abc.InspectLoader.source_to_code() is now a
staticmethod.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.5.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index fbbac03..4410de6 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -158,6 +158,11 @@ Improved Modules
*module* contains no docstrings instead of raising :exc:`ValueError`
(contributed by Glenn Jones in :issue:`15916`).
+* :func:`importlib.abc.InspectLoader.source_to_code` is now a
+ static method to make it easier to work with source code in a string.
+ With a module object that you want to initialize you can then use
+ ``exec(code, module.__dict__)`` to execute the code in the module.
+
Optimizations
=============