summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/tutorial/errors.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index ba0cbb3..34ab7a0 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -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.