Commit 33dbf465 authored by Brett Cannon's avatar Brett Cannon

Outline a possible way to separate out source loading from bytecode loading.

parent d2e7b338
...@@ -5,6 +5,27 @@ to do ...@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment