From: Brett Cannon Date: Tue, 17 Feb 2009 07:15:17 +0000 (+0000) Subject: Outline a possible way to separate out source loading from bytecode loading. X-Git-Tag: v3.1a1~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33dbf46544ebdb30b80b5321c7e393b1e0ccfeb2;p=python Outline a possible way to separate out source loading from bytecode loading. --- diff --git a/Lib/importlib/NOTES b/Lib/importlib/NOTES index 4a473850bb..6a8f45a945 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.