[IronPython] with_statement in IronPython for ASP.Net?

Adam Brand adamb at silverkeytech.com
Fri Apr 10 00:25:53 CEST 2009


Yeah this is a really weird issue; Jimmy mentioned he would look into it.
Will post back to the list when we find out what the deal was.

 

Adam

 

Adam Brand

SilverKey Technologies

 

From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Curt Hagenlocher
Sent: Thursday, April 09, 2009 2:00 PM
To: Discussion of IronPython
Subject: Re: [IronPython] with_statement in IronPython for ASP.Net?

 

IronPython 2 targets CPython 2.5 compatibility.  In 2.5, you need the
__future__ line in order to use the "with" statement.  It's quite possible
that this wasn't implemented yet in that alpha or beta of IronPython.

 

It's in 2.6 where you don't need the "from __future__ import
with_statement".

On Fri, Apr 3, 2009 at 12:01 PM, Adam Brand <adamb at silverkeytech.com> wrote:

Using IronPython for ASP.Net, trying to use:

from __future__ import with_statement

 

...get the message:

future feature is not defined:with_statement

 

Have put the __future__.py file in the directory that py file is in as well
as my lib folder.

 

Any ideas? I saw some references to needing to put the switch -X:Python25,
but I think that was for earlier versions of IPY. AFAIK the IP for ASP.NET
<http://asp.net/>  is IronPython 2, Alpha 1...I'm thinking that one
shouldn't need the switch?

 

 

Thanks,

Adam



_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090409/bfb24ce2/attachment.html>


More information about the Ironpython-users mailing list