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 brett.cannon, chris.jerdonek, christopherthemagnificent, eric.araujo, georg.brandl, ncoghlan
Date 2012-07-14.18:16:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342289789.75.0.972786505299.issue15343@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2012-07-14 18:16:29chris.jerdoneksetrecipients: + chris.jerdonek, brett.cannon, georg.brandl, ncoghlan, eric.araujo, christopherthemagnificent
2012-07-14 18:16:29chris.jerdoneksetmessageid: <1342289789.75.0.972786505299.issue15343@psf.upfronthosting.co.za>
2012-07-14 18:16:29chris.jerdoneklinkissue15343 messages
2012-07-14 18:16:29chris.jerdonekcreate