Brett Cannon added the comment:

Everything is working as expected; you left out the path argument::

  importlib.find_loader('', ['package'])

This works the way it does because otherwise we would have to stat every single 
time from the top level on down and that is extremely costly.

resolution:  -> invalid
status: open -> closed

Python tracker <>
Python-bugs-list mailing list

Reply via email to