[Python-checkins] r59520 - python/trunk/Doc/tutorial/errors.rst

georg.brandl python-checkins at python.org
Sat Dec 15 10:35:00 CET 2007


Author: georg.brandl
Date: Sat Dec 15 10:34:59 2007
New Revision: 59520

Modified:
   python/trunk/Doc/tutorial/errors.rst
Log:
Add note about future import needed for with statement.


Modified: python/trunk/Doc/tutorial/errors.rst
==============================================================================
--- python/trunk/Doc/tutorial/errors.rst	(original)
+++ python/trunk/Doc/tutorial/errors.rst	Sat Dec 15 10:34:59 2007
@@ -408,4 +408,8 @@
 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.


More information about the Python-checkins mailing list