This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients chris.jerdonek
Date 2012-07-08.21:12:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341781980.93.0.099189257301.issue15297@psf.upfronthosting.co.za>
In-reply-to
Content
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>
History
Date User Action Args
2012-07-08 21:13:01chris.jerdoneksetrecipients: + chris.jerdonek
2012-07-08 21:13:00chris.jerdoneksetmessageid: <1341781980.93.0.099189257301.issue15297@psf.upfronthosting.co.za>
2012-07-08 21:13:00chris.jerdoneklinkissue15297 messages
2012-07-08 21:12:59chris.jerdonekcreate