summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-07-20 04:23:48 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-07-20 04:23:48 (GMT)
commit6919427e9462d05f402faa5f846f43e08347cebe (patch)
tree862ce874c7e299b7eb5078a7a5b668e4b17b9918 /Misc
parent64ef00fa605463e1da84e43ea8a5d722843174b6 (diff)
downloadcpython-6919427e9462d05f402faa5f846f43e08347cebe.zip
cpython-6919427e9462d05f402faa5f846f43e08347cebe.tar.gz
cpython-6919427e9462d05f402faa5f846f43e08347cebe.tar.bz2
Implement the PEP 302 protocol for get_filename() as
importlib.abc.ExecutionLoader. PyLoader now inherits from this ABC instead of InspectLoader directly. Both PyLoader and PyPycLoader provide concrete implementations of get_filename in terms of source_path and bytecode_path.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 9fa8e96..178255c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -43,6 +43,11 @@ C-API
Library
-------
+- Add importlib.abc.ExecutionLoader to represent the PEP 302 protocol for
+ loaders that allow for modules to be executed. Both importlib.abc.PyLoader
+ and PyPycLoader inherit from this class and provide implementations in
+ relation to other methods required by the ABCs.
+
- importlib.abc.PyLoader did not inherit from importlib.abc.ResourceLoader like
the documentation said it did even though the code in PyLoader relied on the
abstract method required by ResourceLoader.