The with statement is available by default in IronPython 2.6 -- you don't need any "from __future__ import" to use it (though that line should not give an error). I don't remember when we turned it on; it may not have been in Alpha 1 but it's certainly in the current source.
On Tue, May 19, 2009 at 6:29 AM, Elise Langham (Elanit) < [email protected]> wrote: > Can anyone explain to me how to use the with_statement in IronPython 2.6 > ? > > It is totally unrecognised as a keyword > > > > I’ve tried the Iron Python 2.5 solution: > > > > from __future__ import with_statement which gives the error future feature > is not defined:with_statement > > > > can anyone help me ? > > > > thanks, > > > > Elise > > _______________________________________________ > Users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >
_______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
