Kaydet (Commit) 07b55ead authored tarafından Georg Brandl's avatar Georg Brandl

Add note about future import needed for with statement.

üst 17b52afd
......@@ -408,4 +408,8 @@ After the statement is executed, the file *f* is always closed, 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 ``from __future__ import with_statement`` in Python 2.5.
From 2.6 on, it will always be enabled.
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