lambda in list comprehension acting funny

Chris Angelico rosuav at gmail.com
Sat Jul 14 20:49:48 EDT 2012


On Sun, Jul 15, 2012 at 9:29 AM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> Not necessarily *compile* time, but the distinction is between when the
> function is defined (which may at compile time, or it may be at run time)
> versus when the function is called.

I'd treat the def/lambda statement as "compile time" and the ()
operator as "run time".

ChrisA



More information about the Python-list mailing list