Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
16e86da7
Commit
16e86da7
authored
Mar 27, 2006
by
Phillip J. Eby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The "with" statement needs a __future__. :)
parent
075ef1ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
Doc/ref/ref7.tex
Doc/ref/ref7.tex
+11
-0
No files found.
Doc/ref/ref7.tex
View file @
16e86da7
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment