]> granicus.if.org Git - python/commitdiff
Outline a possible way to separate out source loading from bytecode loading.
authorBrett Cannon <bcannon@gmail.com>
Tue, 17 Feb 2009 07:15:17 +0000 (07:15 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 17 Feb 2009 07:15:17 +0000 (07:15 +0000)
Lib/importlib/NOTES

index 4a473850bba79971cd8b74ade137a854422860d1..6a8f45a945400ab37f4a5a7abdbfa3aa2f569326 100644 (file)
@@ -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.