From 91cf882b367644ece7f121cd22fc43c2f439a2d5 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 21 Feb 2009 05:41:15 +0000 Subject: Refactor source and bytecode file loaders in importlib so that there are source-only and source/bytecode loaders. --- Lib/importlib/NOTES | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'Lib/importlib/NOTES') diff --git a/Lib/importlib/NOTES b/Lib/importlib/NOTES index 35c8fd35c6..22103a102c 100644 --- a/Lib/importlib/NOTES +++ b/Lib/importlib/NOTES @@ -1,31 +1,6 @@ to do ///// -* Refactor source/bytecode finder/loader code such that bytecode support is a - subclass of source support (makes it nicer for VMs that don't use CPython - bytecode). - - + PyLoader (for ABC) - - - load_module for source only - - get_code for source only - - + PyFileLoader(PyLoader) - - - get_data - - source_mtime - - source_path - - +PyPycLoader (PyLoader, for ABC) - - - load_module for source and bytecode - - get_code for source and bytecode - - + PyPycFileLoader(PyPycLoader, PyFileLoader) - - - bytecode_path - - write_bytecode - * Implement PEP 302 protocol for loaders (should just be a matter of testing). + Source/bytecode. @@ -42,7 +17,6 @@ to do * load_module - - (?) Importer(Finder, Loader) - ResourceLoader(Loader) * get_data @@ -89,6 +63,8 @@ to do * Add leading underscores to all objects in importlib._bootstrap that are not publicly exposed. +* Reorder importlib/_bootstrap.py so definitions are not in inverted order. + * Make sure that there is documentation *somewhere* fully explaining the semantics of import that can be referenced from the package's documentation (even if it is in the package documentation itself, although it might be best -- cgit v1.2.1