diff options
author | Brett Cannon <brett@python.org> | 2012-11-17 14:30:55 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-11-17 14:30:55 (GMT) |
commit | 56b4ca78d8cd30e6f2a1292fa9d7004ef157f68c (patch) | |
tree | c251b081a40a91bea5eee9205282ff390a80f8b7 /Lib/importlib | |
parent | 4a42ec5089fd652ad04649811c246005ad1a74f9 (diff) | |
download | cpython-56b4ca78d8cd30e6f2a1292fa9d7004ef157f68c.zip cpython-56b4ca78d8cd30e6f2a1292fa9d7004ef157f68c.tar.gz cpython-56b4ca78d8cd30e6f2a1292fa9d7004ef157f68c.tar.bz2 |
Issue #16489: Make it clearer that importlib.find_loader() requires
the user to import any parent packages.
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py index 6f40dac..22c90f2 100644 --- a/Lib/importlib/__init__.py +++ b/Lib/importlib/__init__.py @@ -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: |