Skip to content

Commit 666820c

Browse files
gh-87304: Improve comments in language reference for imports (GH-92164)
(cherry picked from commit ee2205b) Co-authored-by: Robert Yang <[email protected]>
1 parent 30681d6 commit 666820c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/reference/simple_stmts.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,9 +795,9 @@ The :keyword:`from` form uses a slightly more complex process:
795795
Examples::
796796

797797
import foo # foo imported and bound locally
798-
import foo.bar.baz # foo.bar.baz imported, foo bound locally
799-
import foo.bar.baz as fbb # foo.bar.baz imported and bound as fbb
800-
from foo.bar import baz # foo.bar.baz imported and bound as baz
798+
import foo.bar.baz # foo, foo.bar, and foo.bar.baz imported, foo bound locally
799+
import foo.bar.baz as fbb # foo, foo.bar, and foo.bar.baz imported, foo.bar.baz bound as fbb
800+
from foo.bar import baz # foo, foo.bar, and foo.bar.baz imported, foo.bar.baz bound as baz
801801
from foo import attr # foo imported and foo.attr bound as attr
802802

803803
.. index:: single: * (asterisk); import statement

0 commit comments

Comments
 (0)