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

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


http://hg.python.org/cpython/rev/016d326c5aac
changeset:   90500:016d326c5aac
branch:      2.7
parent:      90497:79a4560a702f
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Tue Apr 29 00:58:48 2014 -0400
summary:
  Closes 21048: Index 'as' in import and with statements.

files:
  Doc/reference/compound_stmts.rst |  4 +++-
  Doc/reference/simple_stmts.rst   |  1 +
  2 files changed, 4 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
@@ -331,7 +331,9 @@
 The :keyword:`with` statement
 =============================
 
-.. index:: statement: with
+.. index::
+    statement: with
+    single: as; with statement
 
 .. versionadded:: 2.5
 
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
@@ -653,6 +653,7 @@
    single: module; importing
    pair: name; binding
    keyword: from
+   single: as; import statement
 
 .. productionlist::
    import_stmt: "import" `module` ["as" `name`] ( "," `module` ["as" `name`] )*

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


More information about the Python-checkins mailing list