Issue #16489: Make it clearer that importlib.find_loader() requires

the user to import any parent packages.
This commit is contained in:
Brett Cannon 2012-11-17 09:30:55 -05:00
parent 4a42ec5089
commit 56b4ca78d8
3 changed files with 10 additions and 6 deletions

View file

@ -55,7 +55,9 @@ def find_loader(name, path=None):
value of 'path' given to the finders. None is returned if no loader could
be found.
Dotted names do not have their parent packages implicitly imported.
Dotted names do not have their parent packages implicitly imported. You will
most likely need to explicitly import all parent packages in the proper
order for a submodule to get the correct loader.
"""
try: