[Python-checkins] r52374 - sandbox/trunk/import_in_py/importer.py

brett.cannon python-checkins at python.org
Wed Oct 18 03:32:02 CEST 2006


Author: brett.cannon
Date: Wed Oct 18 03:32:02 2006
New Revision: 52374

Modified:
   sandbox/trunk/import_in_py/importer.py
Log:
Add a comment as to why the filesystem loader needs to return what the the
handler returns instead of the new module that the loader hands off.


Modified: sandbox/trunk/import_in_py/importer.py
==============================================================================
--- sandbox/trunk/import_in_py/importer.py	(original)
+++ sandbox/trunk/import_in_py/importer.py	Wed Oct 18 03:32:02 2006
@@ -263,6 +263,8 @@
             # Needs to be set regardless of whether passed-in module was used
             # or not.
             module.__loader__ = self
+            # Need to return what the handler gave us back as they may not have
+            # used the module we gave them.
             return module
 
 


More information about the Python-checkins mailing list