]> granicus.if.org Git - python/commitdiff
Issue13820 as and with really became keywords in 2.6.
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 21 Jan 2012 05:24:25 +0000 (00:24 -0500)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sat, 21 Jan 2012 05:24:25 +0000 (00:24 -0500)
Original rewording by Jim Jewett

Doc/reference/lexical_analysis.rst

index d716139c13fcaf88fc0f00b0ab25d01de355dfc5..62ec664b86795e18aa51a27e39bcb09159317838 100644 (file)
@@ -357,12 +357,11 @@ exactly as written here:
    assign a different object to it.
 
 .. versionchanged:: 2.5
-   Both :keyword:`as` and :keyword:`with` are only recognized when the
-   ``with_statement`` future feature has been enabled. It will always be enabled in
-   Python 2.6.  See section :ref:`with` for details.  Note that using :keyword:`as`
-   and :keyword:`with` as identifiers will always issue a warning, even when the
-   ``with_statement`` future directive is not in effect.
-
+   Using :keyword:`as` and :keyword:`with` as identifiers triggers a warning.  To
+   use them as keywords, enable the ``with_statement`` future feature .
+   
+.. versionchanged:: 2.6
+    :keyword:`as` and :keyword:`with` are full keywords.
 
 .. _id-classes: