On Wed, Dec 22, 2010 at 12:13 AM, Stefaan Himpe <stefaan.hi...@gmail.com> wrote:
>> myfunction(lambda x: print 'Eat %s!' % x)
>>
>> and that would print 'Eat this!'.
>
> Ahm... :)
> You can't use print in lambda as it is a statement, not an expression (in
> python 2.x at least)

Yah, I know. I've corrected myself. But I guess it's worth repeating. :)


-- 
Branko Vukelic

stu...@brankovukelic.com
http://www.brankovukelic.com/

Reply via email to