[Python-checkins] r52769 - sandbox/trunk/import_in_py/importer.py
brett.cannon
python-checkins at python.org
Thu Nov 16 23:41:42 CET 2006
Author: brett.cannon
Date: Thu Nov 16 23:41:41 2006
New Revision: 52769
Modified:
sandbox/trunk/import_in_py/importer.py
Log:
Clarify comments on semantics that still need to be implemented.
Modified: sandbox/trunk/import_in_py/importer.py
==============================================================================
--- sandbox/trunk/import_in_py/importer.py (original)
+++ sandbox/trunk/import_in_py/importer.py Thu Nov 16 23:41:41 2006
@@ -41,8 +41,14 @@
imported; if no __all__ is defined then the attributes on the packages are
bound in the namespace (including previously imported modules)
[package essay].
+ + Bytecode handles pulling every attribute off of module.
+ + Do need to make sure all entries in __all__ are an attribute of the
+ module, though.
* Modules in sys.modules with a value of None are for redirection to a
top-level module that was imported in a submodule [pacakge essay].
+ + If classic relative import fails but absolute import succeeds, create
+ redirection entry in sys.modules for resolved relative name.
+ + If both imports fail then no need to create redirection entry.
Bytecode
--------
More information about the Python-checkins
mailing list