Elise Langham (Elanit) 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 ?


This should still work however (future imports are guaranteed to work in all future versions even if not needed any more). The specific error you get implies that you have the Python 2.4 version of __future__.py somewhere on sys.path.

All the best,

Michael Foord

thanks,

Elise

------------------------------------------------------------------------

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


--
http://www.ironpythoninaction.com/

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to