[Python-checkins] cpython (3.4): Closes 21048: Index 'as' in import and with statements.

terry.reedy python-checkins at python.org
Tue Apr 29 07:00:16 CEST 2014


http://hg.python.org/cpython/rev/9a0fc12991e2
changeset:   90501:9a0fc12991e2
branch:      3.4
parent:      90498:3fef95842314
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Tue Apr 29 00:58:56 2014 -0400
summary:
  Closes 21048: Index 'as' in import and with statements.

files:
  Doc/reference/compound_stmts.rst |  4 +++-
  Doc/reference/simple_stmts.rst   |  2 ++
  2 files changed, 5 insertions(+), 1 deletions(-)


diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -348,7 +348,9 @@
 The :keyword:`with` statement
 =============================
 
-.. index:: statement: with
+.. index::
+    statement: with
+    single: as; with statement
 
 The :keyword:`with` statement is used to wrap the execution of a block with
 methods defined by a context manager (see section :ref:`context-managers`).
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -656,6 +656,8 @@
 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list