Chris Jerdonek <chris.jerdo...@gmail.com> added the comment: In Python 2.7, I just did this test:
>>> import sys, pkgutil >>> for path in sys.path: ... print pkgutil.get_importer(path) And got only pkgutil.ImpImporter instances and imp.NullImporter objects. So even before, at least in the most common case, it looks like pkgutil may have been relying on its "wrapped" importers for access to an iter_modules() method. When I do the same test in Python 3.3, I get only FileFinder instances. So in Python 3.3, pkgutil just isn't getting to the lines that would otherwise create ImpImporter instances that would work for our purposes (presumably because sys.path_hooks is populated differently in Python 3.3). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15343> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com