From 52550e593d7c36121aaef766da0bf9ba79927276 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 15 Dec 2007 09:36:15 +0000 Subject: [PATCH] Add a note about future import needed for with statement. --- Doc/tut/tut.tex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index d6fc75bc668..374d1941938 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -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}}