[Python-checkins] r61300 - sandbox/trunk/import_in_py/_importlib.py

brett.cannon python-checkins at python.org
Fri Mar 7 23:21:33 CET 2008


Author: brett.cannon
Date: Fri Mar  7 23:21:33 2008
New Revision: 61300

Modified:
   sandbox/trunk/import_in_py/_importlib.py
Log:
Add a note about NullImporter being the importer set when nothing is found for
a location in sys.path_hooks.


Modified: sandbox/trunk/import_in_py/_importlib.py
==============================================================================
--- sandbox/trunk/import_in_py/_importlib.py	(original)
+++ sandbox/trunk/import_in_py/_importlib.py	Fri Mar  7 23:21:33 2008
@@ -723,6 +723,7 @@
             else:
                 # No importer factory on sys.path_hooks works; use the default
                 # importer factory.
+                # XXX NullImporter used in import.c.
                 try:
                     importer = self.default_path_hook(path_entry)
                     sys.path_importer_cache[path_entry] = importer


More information about the Python-checkins mailing list