mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue #16489: Make it clearer that importlib.find_loader() requires
the user to import any parent packages.
This commit is contained in:
parent
4a42ec5089
commit
56b4ca78d8
3 changed files with 10 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue