mirror of https://github.com/python/cpython
Outline a possible way to separate out source loading from bytecode loading.
This commit is contained in:
parent
d2e7b33815
commit
33dbf46544
|
@ -5,6 +5,27 @@ to do
|
||||||
subclass of source support (makes it nicer for VMs that don't use CPython
|
subclass of source support (makes it nicer for VMs that don't use CPython
|
||||||
bytecode).
|
bytecode).
|
||||||
|
|
||||||
|
+ chained_path_hook
|
||||||
|
+ FileFinder
|
||||||
|
|
||||||
|
- find_module
|
||||||
|
|
||||||
|
+ ExtensionFileFinder
|
||||||
|
+ PyFileFinder
|
||||||
|
+ PyPycFileFinder
|
||||||
|
+ PyFileLoader
|
||||||
|
|
||||||
|
- get_code for source only
|
||||||
|
- get_data
|
||||||
|
- source_mtime
|
||||||
|
- source_path
|
||||||
|
|
||||||
|
+ PyPycFileLoader(PyFileLoader)
|
||||||
|
|
||||||
|
- get_code
|
||||||
|
- bytecode_path
|
||||||
|
- write_bytecode
|
||||||
|
|
||||||
* Implement PEP 302 protocol for loaders (should just be a matter of testing).
|
* Implement PEP 302 protocol for loaders (should just be a matter of testing).
|
||||||
|
|
||||||
+ Source/bytecode.
|
+ Source/bytecode.
|
||||||
|
|
Loading…
Reference in New Issue