From: gabriele renzi Date: 2005-05-19T18:15:13+09:00 Subject: Re: syntax sugar: treating an object like a method Eric Mahurin ha scritto: > > I didn't know Python had that. Just found it: > > x(arg1, arg2, ...) is a shorthand for x.__call__(arg1, arg2, > ..) but notice that python does not have (and never had) separate namespaces for methods and variables, like we have in ruby. Special casing #call (which is something I like) will cause some breakage in cases where you do things like meth = meth(meth) or similar, see a recent message from Joao Pedrosa (IIRC) that shows some examples of real libraries getting an error.