From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 3 May 2022 22:28:09 +0000 (-0700) Subject: gh-87304: Improve comments in language reference for imports (GH-92164) X-Git-Tag: v3.9.13~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=696d868d1910d39c5d5e82d2eb7f0a42c6964b28;p=thirdparty%2FPython%2Fcpython.git gh-87304: Improve comments in language reference for imports (GH-92164) (cherry picked from commit ee2205b208389611e8a278ac1bc74b34f4994fd2) Co-authored-by: Robert Yang <35813883+robert861212@users.noreply.github.com> --- diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 5f9e8dc1791d..2c2c2453e492 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -795,9 +795,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