summaryrefslogtreecommitdiffstats
path: root/Doc/reference/simple_stmts.rst
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-04-29 04:58:56 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-04-29 04:58:56 (GMT)
commit7c895edabc0cf1d30061c929ca8c7fc2d45f0851 (patch)
treee770b4e8746e9940804ef5919d202b011693dc1c /Doc/reference/simple_stmts.rst
parent43e7cd38e50a0f63362768e3009ba515c8a475d7 (diff)
downloadcpython-7c895edabc0cf1d30061c929ca8c7fc2d45f0851.zip
cpython-7c895edabc0cf1d30061c929ca8c7fc2d45f0851.tar.gz
cpython-7c895edabc0cf1d30061c929ca8c7fc2d45f0851.tar.bz2
Closes 21048: Index 'as' in import and with statements.
Diffstat (limited to 'Doc/reference/simple_stmts.rst')
-rw-r--r--Doc/reference/simple_stmts.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index 40bbc39..b710cd4 100644
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -656,6 +656,8 @@ initializing the module, which includes execution of the module's code.
If the requested module is retrieved successfully, it will be made
available in the local namespace in one of three ways:
+.. index:: single: as; import statement
+
* If the module name is followed by :keyword:`as`, then the name
following :keyword:`as` is bound directly to the imported module.
* If no other name is specified, and the module being imported is a top