[newbie] making rows of table with discrete values for different number systems

Rustom Mody rustompmody at gmail.com
Tue Feb 4 03:48:30 CET 2014

On Tuesday, February 4, 2014 3:20:06 AM UTC+5:30, Terry Reedy wrote:
> name = lambda xxx is poor style because it produces a function object 
> lacking a proper name. Reusing the function name as a local is also 
> confusing. The above is equivalent to

> def m(k, n): return 1 if k & n else 0

Yeah... Well... Except that I'd put it the other way: the second --
shadowing names -- is MUCH worse than naked lambdas. Unless you're
entering an obfuscated python contest :D

More information about the Python-list mailing list