Some "pythonic" suggestions for Python

Raymond Hettinger python at
Thu Nov 8 21:41:32 CET 2007

On Nov 8, 12:00 pm, Frank Samuelson
<newsdump0711.12.cud... at> wrote:
> def  foo(x,y): ...
> assigns the name foo to a function object.
> Why not use the = operator like most other assignments?

FWIW, the also binds the __name__ attribute:

   foo = lambda(x,y): ...
   foo.__name__ = 'foo'


More information about the Python-list mailing list