From 33dbf46544ebdb30b80b5321c7e393b1e0ccfeb2 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 17 Feb 2009 07:15:17 +0000 Subject: [PATCH] Outline a possible way to separate out source loading from bytecode loading. --- Lib/importlib/NOTES | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Lib/importlib/NOTES b/Lib/importlib/NOTES index 4a473850bba..6a8f45a9454 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.