Issue 10672: ["with"] new in version 2.6 instead of 2.5 (original) (raw)

Issue10672

Created on 2010-12-10 12:48 by karmaguedon, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg123731 - (view) Author: Mayweed (karmaguedon) Date: 2010-12-10 12:48
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 !
msg123732 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-12-10 13:24
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.
History
Date User Action Args
2022-04-11 14:57:10 admin set github: 54881
2010-12-10 13:24:42 georg.brandl set status: open -> closednosy: + georg.brandlmessages: + resolution: not a bug
2010-12-10 12:48:25 karmaguedon create