From: Georg Brandl Date: Sat, 15 Dec 2007 09:36:15 +0000 (+0000) Subject: Add a note about future import needed for with statement. X-Git-Tag: v2.5.2c1~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52550e593d7c36121aaef766da0bf9ba79927276;p=python Add a note about future import needed for with statement. --- diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index d6fc75bc66..374d194193 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}}