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 brett.cannon
Recipients Arfrever, Pathangi Jatinshravan, brett.cannon, eric.snow, martin.panter, ncoghlan, r.david.murray
Date 2015-10-11.15:19:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444576770.09.0.510597675344.issue25372@psf.upfronthosting.co.za>
In-reply-to
Content
1) I would use https://docs.python.org/3/library/importlib.html#importlib.find_loader instead of pkgutil

2) there are a bunch of ways to get a hold of a loader and its hard to document how to use a loader properly since it's low level like __path__ while being crucial for stuff like reloading and loaders predate __spec__
History
Date User Action Args
2015-10-11 15:19:30brett.cannonsetrecipients: + brett.cannon, ncoghlan, Arfrever, r.david.murray, eric.snow, martin.panter, Pathangi Jatinshravan
2015-10-11 15:19:30brett.cannonsetmessageid: <1444576770.09.0.510597675344.issue25372@psf.upfronthosting.co.za>
2015-10-11 15:19:30brett.cannonlinkissue25372 messages
2015-10-11 15:19:30brett.cannoncreate