summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-02-17 07:15:17 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-02-17 07:15:17 (GMT)
commit33dbf46544ebdb30b80b5321c7e393b1e0ccfeb2 (patch)
tree26519107bd1dbceb1b8c96dd57f2f7cedb43d818
parentd2e7b3381532720cdfafbf59491bb74b7ff31b51 (diff)
downloadcpython-33dbf46544ebdb30b80b5321c7e393b1e0ccfeb2.zip
cpython-33dbf46544ebdb30b80b5321c7e393b1e0ccfeb2.tar.gz
cpython-33dbf46544ebdb30b80b5321c7e393b1e0ccfeb2.tar.bz2
Outline a possible way to separate out source loading from bytecode loading.
-rw-r--r--Lib/importlib/NOTES21
1 files changed, 21 insertions, 0 deletions
diff --git a/Lib/importlib/NOTES b/Lib/importlib/NOTES
index 4a47385..6a8f45a 100644
--- a/Lib/importlib/NOTES
+++ b/Lib/importlib/NOTES
@@ -5,6 +5,27 @@ to do
subclass of source support (makes it nicer for VMs that don't use CPython
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).
+ Source/bytecode.