[Python-checkins] r53632 - sandbox/trunk/import_in_py/importlib.py sandbox/trunk/import_in_py/test_controlled_importlib.py
python-checkins at python.org
Sun Feb 4 02:04:07 CET 2007
Date: Sun Feb 4 02:04:05 2007
New Revision: 53632
Touch up some docstrings and comments.
--- sandbox/trunk/import_in_py/importlib.py (original)
+++ sandbox/trunk/import_in_py/importlib.py Sun Feb 4 02:04:05 2007
@@ -270,6 +270,8 @@
If the module's name is dotted then only search for the trailing
module's name on the path entry. An importer is already created
for each directory in the __path__ attribute for a package.
+ 'path' is ignored as that is meant for meta_path entries only.
tail_module = fullname.rsplit('.', 1)[-1]
@@ -462,10 +464,10 @@
package location of 'package'.
The loader needs to implement several methods in order to this handler
- to be able to load needed data. A key point with some of these methods
- is the idea of opaque code objects which are not directly touched by
- the handler but are passed back to the loader so as to allow for a way
- to keep state:
+ to be able to load the needed data. A key point with some of these
+ methods is the idea of opaque code objects which are not directly
+ touched by the handler but are passed back to the loader so as to allow
+ for a way to keep state:
Take in an opaque path object and split it into a base path and a
--- sandbox/trunk/import_in_py/test_controlled_importlib.py (original)
+++ sandbox/trunk/import_in_py/test_controlled_importlib.py Sun Feb 4 02:04:05 2007
@@ -206,9 +206,11 @@
self.failUnlessRaises(ImportError, import_, blacklisted, level=0)
+ # XXX
+ # XXX
More information about the Python-checkins