diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-07-20 04:23:48 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-07-20 04:23:48 (GMT) |
commit | 6919427e9462d05f402faa5f846f43e08347cebe (patch) | |
tree | 862ce874c7e299b7eb5078a7a5b668e4b17b9918 /Misc | |
parent | 64ef00fa605463e1da84e43ea8a5d722843174b6 (diff) | |
download | cpython-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/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |