diff options
author | Robert Yang <35813883+robert861212@users.noreply.github.com> | 2022-05-03 22:08:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 22:08:05 (GMT) |
commit | ee2205b208389611e8a278ac1bc74b34f4994fd2 (patch) | |
tree | ce72dc8b77abf41ab7ad86daf18fca8bb0fdda97 /Doc/reference | |
parent | 6b7dcc56072d19d3edbc905d0bb20bd0b4463d19 (diff) | |
download | cpython-ee2205b208389611e8a278ac1bc74b34f4994fd2.zip cpython-ee2205b208389611e8a278ac1bc74b34f4994fd2.tar.gz cpython-ee2205b208389611e8a278ac1bc74b34f4994fd2.tar.bz2 |
gh-87304: Improve comments in language reference for imports (#92164)
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/simple_stmts.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 5f19a38..8311de0 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -801,9 +801,9 @@ The :keyword:`from` form uses a slightly more complex process: Examples:: import foo # foo imported and bound locally - import foo.bar.baz # foo.bar.baz imported, foo bound locally - import foo.bar.baz as fbb # foo.bar.baz imported and bound as fbb - from foo.bar import baz # foo.bar.baz imported and bound as baz + import foo.bar.baz # foo, foo.bar, and foo.bar.baz imported, foo bound locally + import foo.bar.baz as fbb # foo, foo.bar, and foo.bar.baz imported, foo.bar.baz bound as fbb + from foo.bar import baz # foo, foo.bar, and foo.bar.baz imported, foo.bar.baz bound as baz from foo import attr # foo imported and foo.attr bound as attr .. index:: single: * (asterisk); import statement |