Georg Brandl added the comment:
It is in fact new in 2.5, but only available when using "from __future__ import
with_statement", which the note near the end of the section details.
--
nosy: +georg.brandl
resolution: -> invalid
status: open -> closed
__
New submission from Mayweed :
In the documentation, the statement "with" is marked as:
"New in version 2.5."
(http://docs.python.org/reference/compound_stmts.html#the-with-statement)
This new statement is new in version 2.6 !
--
assignee: d...@python
components: Documentation
messages: