[Import-SIG] New PEP draft: "Simplified Package Layout and Partitioning"

Nick Coghlan ncoghlan at gmail.com
Fri Jul 15 06:23:34 CEST 2011

On Fri, Jul 15, 2011 at 4:13 AM, P.J. Eby <pje at telecommunity.com> wrote:
> At 01:16 PM 7/14/2011 +1000, Nick Coghlan wrote:
>> We may also want to provide (probably in importlib) a way to walk the
>> *potentially* importable modules on a path entry without actually
>> importing them.
> No problem.  Let me just set the time machine for 2006 and add it to pkgutil
> instead, so it'll be in Python 2.5+.  How dos the name 'iter_modules()'
> sound?  ;-)

For some reason I was thinking that only iterated over already loaded
modules. No, I don't know why I thought that, given that sys.modules
already covers that use case :P

Fair enough on deferring the decision on how the importlib transition
affects the public API until after it actually happens.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Import-SIG mailing list