what's wrong with "lambda x : print x/60,x%60"

Steve Holden steve at holdenweb.com
Tue Dec 6 08:19:26 EST 2005


Sybren Stuvel wrote:
> Fredrik Lundh enlightened us with:
> 
>>>def somefunc(x): return x*5
>>>
>>>How is that a multi-line function definition?
>>
>>but that's namespace pollution! if you do this, nobody will never ever be
>>able to use the name somefunc again! won't somebody please think about
>>the children!
> 
> 
> If you use that as an inner function, it only "pollutes" the local
> namespace of that function. How's that influencing the rest of the
> world?
> 

I think you need to turn your irony detector up a little - it looks like 
hte gain is currently way too low :o)

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/




More information about the Python-list mailing list