Weird lambda behavior

Scott David Daniels Scott.Daniels at Acm.Org
Wed Apr 22 18:09:45 CEST 2009


Dave Angel wrote:
> ... Incidentally, in your example, I believe you needed the *y and **z in 
> the actual parameters to __callFn__()....

Also, use a name like __callFn rhather than __callFn__ -- You are 
treading on Pythons internal names if you put __ at the beginning
_and_ the end, and will confuse your reader (they may be fooled into
looking up what the "__callFn__" special method does in addition to
normal method behaviors.

--Scott David Daniels
Scott.Daniels at Acm.Org




More information about the Python-list mailing list