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 xdegaye
Recipients brett.cannon, eric.smith, r.david.murray, xdegaye
Date 2012-11-17.12:15:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353154521.33.0.273567475203.issue16489@psf.upfronthosting.co.za>
In-reply-to
Content
I was bitten by this behavior while, new to the importlib library, I
was trying to understand if one has to call recursively find_loader
for a dotted module name (in the way it must be done when using
imp.find_module), since the documentation on find_loader is not
clear. My test environment happened to be at that time:

    foo.py
    mypackage
        __init__.py
        foo.py

and at first I could not understand why find_loader('mypackage.foo')
was returning a loader, while find_loader('logging.handlers') was
returning None.

It is fine with me to consider that this behavior does not have
to be changed and to close this discussion.
History
Date User Action Args
2012-11-17 12:15:21xdegayesetrecipients: + xdegaye, brett.cannon, eric.smith, r.david.murray
2012-11-17 12:15:21xdegayesetmessageid: <1353154521.33.0.273567475203.issue16489@psf.upfronthosting.co.za>
2012-11-17 12:15:21xdegayelinkissue16489 messages
2012-11-17 12:15:21xdegayecreate