mirror of
https://github.com/python/cpython.git
synced 2025-11-18 10:19:40 +00:00
gh-87304: Improve comments in language reference for imports (#92164)
This commit is contained in:
parent
6b7dcc5607
commit
ee2205b208
1 changed files with 3 additions and 3 deletions
|
|
@ -801,9 +801,9 @@ The :keyword:`from` form uses a slightly more complex process:
|
||||||
Examples::
|
Examples::
|
||||||
|
|
||||||
import foo # foo imported and bound locally
|
import foo # foo imported and bound locally
|
||||||
import foo.bar.baz # foo.bar.baz imported, foo bound locally
|
import foo.bar.baz # foo, foo.bar, and foo.bar.baz imported, foo bound locally
|
||||||
import foo.bar.baz as fbb # foo.bar.baz imported and bound as fbb
|
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.bar.baz imported and bound as baz
|
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
|
from foo import attr # foo imported and foo.attr bound as attr
|
||||||
|
|
||||||
.. index:: single: * (asterisk); import statement
|
.. index:: single: * (asterisk); import statement
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue