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.17:42:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342287736.51.0.641483531734.issue15343@psf.upfronthosting.co.za>
In-reply-to
Content
I agree pkgutil is pretty much useless right now and deprecation worth considering.  But isn't another option simply to change pkgutil's internals to provide its own iter_modules whenever it finds that method missing?  This seems to be what it has done in the past for some code paths when it made its own ImpImporter wrappers (in pkgutil.get_importer()):

http://hg.python.org/cpython/file/416cd57d38cf/Lib/pkgutil.py#l363

It seems this would at least work for FileFinders, though I haven't thought this through to know for sure one way or the other.
History
Date User Action Args
2012-07-14 17:42:16chris.jerdoneksetrecipients: + chris.jerdonek, brett.cannon, georg.brandl, ncoghlan, eric.araujo, christopherthemagnificent
2012-07-14 17:42:16chris.jerdoneksetmessageid: <1342287736.51.0.641483531734.issue15343@psf.upfronthosting.co.za>
2012-07-14 17:42:15chris.jerdoneklinkissue15343 messages
2012-07-14 17:42:15chris.jerdonekcreate