[IronPython] list of lambdas only evaluates first expression

Brandon Furtwangler furtwan1 at msu.edu
Mon Jan 9 20:59:24 CET 2006

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: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Matt Beckius
Sent: Monday, January 09, 2006 11:04 AM
To: users at lists.ironpython.com
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)


Matt B.

Matt Beckius

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

More information about the Ironpython-users mailing list