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

Fredrik Lundh fredrik at pythonware.com
Mon Dec 5 18:33:17 EST 2005


Sybren Stuvel wrote:

> 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!

</F>






More information about the Python-list mailing list