I wonder if this is the same problem I had a couple days ago (a bug with calling multiple python methods).  Turning GenerateDynamicMethods to false in Options.cs and recompiling IronPython fixed my problem.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Beckius
Sent: Monday, January 09, 2006 11:04 AM
To: [email protected]
Subject: [IronPython] list of lambdas only evaluates first _expression_

 

>>> l = [lambda x : x**2, lambda y : y**3, lambda z : z**4]
>>> for x in l :  print x(2)
4
4
4

 

Matt B.


--
Matt Beckius
610.308.8827

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

Reply via email to