[Python-checkins] gh-87304: Improve comments in language reference for imports (GH-92164)
miss-islington
webhook-mailer at python.org
Tue May 3 18:24:14 EDT 2022
https://github.com/python/cpython/commit/666820cb4bc5e269e3110a9781278bf496dcbced
commit: 666820cb4bc5e269e3110a9781278bf496dcbced
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-03T15:24:03-07:00
summary:
gh-87304: Improve comments in language reference for imports (GH-92164)
(cherry picked from commit ee2205b208389611e8a278ac1bc74b34f4994fd2)
Co-authored-by: Robert Yang <35813883+robert861212 at users.noreply.github.com>
files:
M Doc/reference/simple_stmts.rst
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index 8dfc01db263f5..d5f1e045e980c 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
More information about the Python-checkins
mailing list