Skip to content

Commit 5b1a8cc

Browse files
authored
importing - "import" instead of "from"
I suppose this doesn't work: from packagename.module1 and should be: import packagename.module1
1 parent 43f5d5a commit 5b1a8cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2280,7 +2280,7 @@ You can import a package or a module::
22802280

22812281
Assume there is a ``fib`` function in ``module1``. You have access to everything in the namespace of the module you imported::
22822282

2283-
from packagename.module1
2283+
import packagename.module1
22842284

22852285
packagename.module1.fib()
22862286

0 commit comments

Comments
 (0)