Skip to content

Commit ee2205b

Browse files
authored
gh-87304: Improve comments in language reference for imports (#92164)
1 parent 6b7dcc5 commit ee2205b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/reference/simple_stmts.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -801,9 +801,9 @@ The :keyword:`from` form uses a slightly more complex process:
801801
Examples::
802802

803803
import foo # foo imported and bound locally
804-
import foo.bar.baz # foo.bar.baz imported, foo bound locally
805-
import foo.bar.baz as fbb # foo.bar.baz imported and bound as fbb
806-
from foo.bar import baz # foo.bar.baz imported and bound as baz
804+
import foo.bar.baz # foo, foo.bar, and foo.bar.baz imported, foo bound locally
805+
import foo.bar.baz as fbb # foo, foo.bar, and foo.bar.baz imported, foo.bar.baz bound as fbb
806+
from foo.bar import baz # foo, foo.bar, and foo.bar.baz imported, foo.bar.baz bound as baz
807807
from foo import attr # foo imported and foo.attr bound as attr
808808

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

0 commit comments

Comments
 (0)