On Nov 8, 12:00 pm, Frank Samuelson
<[EMAIL PROTECTED]> 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'


Raymond

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to