Does Kamaelia use the new syntax as supported via PEP-342 
(http://www.python.org/dev/peps/pep-0342/).  That’s the particular piece that 
we don’t support and is new to 2.5 – we do support generators when you use 
yield as a statement instead of as an expression (in other words, we don’t 
support the send method on the generator – only next).  It’s hard to tell as 
1.5.1 was released shortly after Python 2.5 and I don’t see any statements 
about which version of Python is required.

Looking at all the various things it supports I would be shocked if there 
wasn’t some use of the C-based extension API (which would prevent, at least 
some portions, from working).

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of M. David Peterson
Sent: Tuesday, July 10, 2007 1:06 PM
To: Discussion of IronPython
Cc: [EMAIL PROTECTED]
Subject: Re: [IronPython] Hosting IronPython 2.X in .NET app


On 7/10/07, Sylvain Hellegouarch <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> 
wrote:

Not to worry :)
However the question stands, will Python support closures (or does it
already via lambda expressions?)

Depends on your interpretation of what a closure is.  One interpretation is 
that w ith closures you can, for example, have a series of lambda expressions, 
evaluate up to a certain point, add a marker, store it, and then continue where 
you left off at a later date.

As per our conversation in IM, this would certainly be one way to move towards 
a stackless and thread-free Python diet. ;-)

Also, since we're on the subject, one *true test* of Python language 
interoperability would be to get Kamaelia ( http://kamaelia.org ) to work 
properly via IronPython.

Kamaelia list (Cc'd): Has anyone attempted to get Kamaelia working with 
IronPython?  If I am understanding things correctly, until support for 
generators are implemented then this would not be possible.  Is this 
understanding correct?

To the IronPython team: Having the ability to run Kamaelia (a brainchild of 
Michael Sparks of BBC Research) via IronPython would be an absolute dream come 
true.  *AMAZING* potential existing bridging together Kamaelia and .NET, in my 
own opinion.

--
/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | 
http://dev.aol.com/blog/3155
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to