[Python-Dev] SyntaxError: can't assign to function call

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Aug 11 03:21:37 CEST 2006


Michael Urman wrote:

> Just to play devil's advocate here, why not to a function call via a
> new __setcall__?

You still haven't answered the question of what this
buys you over just giving your object a suitably
named method that does whatever your __setcall__
method would have done.

Can you show a realistic use case for this, that
demonstrates a clear advantage to having new
syntax?

--
Greg


More information about the Python-Dev mailing list