Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edf5f0d commit 0c8414eCopy full SHA for 0c8414e
1 file changed
Doc/reference/simple_stmts.rst
@@ -823,7 +823,7 @@ leading dot means the current package where the module making the import
823
exists. Two dots means up one package level. Three dots is up two levels, etc.
824
So if you execute ``from . import mod`` from a module in the ``pkg`` package
825
then you will end up importing ``pkg.mod``. If you execute ``from ..subpkg2
826
-imprt mod`` from within ``pkg.subpkg1`` you will import ``pkg.subpkg2.mod``.
+import mod`` from within ``pkg.subpkg1`` you will import ``pkg.subpkg2.mod``.
827
The specification for relative imports is contained within :pep:`328`.
828
829
:func:`importlib.import_module` is provided to support applications that
0 commit comments