]> granicus.if.org Git - python/commitdiff
Add a note about future import needed for with statement.
authorGeorg Brandl <georg@python.org>
Sat, 15 Dec 2007 09:36:15 +0000 (09:36 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 15 Dec 2007 09:36:15 +0000 (09:36 +0000)
Doc/tut/tut.tex

index d6fc75bc6685c12a64f27c02e180767639914166..374d1941938eeaf80e98bbec14c75c4a1eec01b8 100644 (file)
@@ -3834,6 +3834,10 @@ even if a problem was encountered while processing the lines. Other
 objects which provide predefined clean-up actions will indicate
 this in their documentation.
 
+\note{Since \keyword{with} is a new language keyword, it must be
+      enabled by executing \code{from __future__ import with_statement}
+      in Python 2.5.  From 2.6 on, it will always be enabled.}
+
 
 \chapter{Classes \label{classes}}