Commit 16e86da7 authored by Phillip J. Eby's avatar Phillip J. Eby

The "with" statement needs a __future__. :)

parent 075ef1ac
...@@ -363,6 +363,17 @@ at the normal location for the kind of exit that was taken. ...@@ -363,6 +363,17 @@ at the normal location for the kind of exit that was taken.
\end{enumerate} \end{enumerate}
\begin{notice}
In Python 2.5, the \keyword{with} statement is only allowed
when the \code{with_statement} feature has been enabled. It will always
be enabled in Python 2.6. This \code{__future__} import statement can
be used to enable the feature:
\begin{verbatim}
from __future__ import with_statement
\end{verbatim}
\end{notice}
\begin{seealso} \begin{seealso}
\seepep{0343}{The "with" statement} \seepep{0343}{The "with" statement}
{The specification, background, and examples for the {The specification, background, and examples for the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment