[Python-checkins] r59521 - python/branches/release25-maint/Doc/tut/tut.tex

georg.brandl python-checkins at python.org
Sat Dec 15 10:36:16 CET 2007


Author: georg.brandl
Date: Sat Dec 15 10:36:15 2007
New Revision: 59521

Modified:
   python/branches/release25-maint/Doc/tut/tut.tex
Log:
Add a note about future import needed for with statement.


Modified: python/branches/release25-maint/Doc/tut/tut.tex
==============================================================================
--- python/branches/release25-maint/Doc/tut/tut.tex	(original)
+++ python/branches/release25-maint/Doc/tut/tut.tex	Sat Dec 15 10:36:15 2007
@@ -3834,6 +3834,10 @@
 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}}
 


More information about the Python-checkins mailing list