lambda in list comprehension acting funny

Chris Angelico rosuav at gmail.com
Sun Jul 15 02:49:48 CEST 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