Message165035
I'm not sure if this should be fixed in the code or in the documentation, but the pkgutil.iter_importers() documentation says that pkgutil.iter_importers(name) should yield the "importers for sys.meta_path, sys.path, and Python’s “classic” import machinery, in that order" when name does not include a ".":
http://docs.python.org/dev/library/pkgutil.html#pkgutil.iter_importers
However, the function appends a "non-classic" pkgutil.ImpImporter at the end of all that:
Python 3.3.0b1 (default:5d43154d68a8, Jul 8 2012, 13:54:45)
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin
>>> from pkgutil import iter_importers
>>> list(iter_importers())[-1]
<pkgutil.ImpImporter object at 0x1035fa840> |
|
Date |
User |
Action |
Args |
2012-07-08 21:13:01 | chris.jerdonek | set | recipients:
+ chris.jerdonek |
2012-07-08 21:13:00 | chris.jerdonek | set | messageid: <1341781980.93.0.099189257301.issue15297@psf.upfronthosting.co.za> |
2012-07-08 21:13:00 | chris.jerdonek | link | issue15297 messages |
2012-07-08 21:12:59 | chris.jerdonek | create | |
|