"Cameron Laird" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jibes against the lambda-clingers lead eventually to serious > questions of style in regard to variable namespacing, > lifespan, cleanup, and so on: > http://groups.google.com/group/comp.lang.python/browse_thread/thread/ad0e15cb6b8f2c32/
#evaluate polynomial (coefs) at x using Horner's ruledef horner(coefs,x): return reduce(lambda a1,a2: a1*x+a2,coefs)'Nuf said.Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list