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

"Martin v. Löwis" martin at v.loewis.de
Fri Aug 11 21:40:50 CEST 2006


Michael Urman schrieb:
> On 8/9/06, Michael Hudson <mwh at python.net> wrote:
>> The question doesn't make sense: in Python, you assign to a name,
>> an attribute or a subscript, and that's it.
> 
> Just to play devil's advocate here, why not to a function call via a
> new __setcall__? 

Just try specifying this one day. I'm sure a dozen readers of the list
will rip apart the first specification you make as underspecified or
unimplementable (hint: what is the precise syntax for the left-hand
side? how to parse it? what is the precise parameter list?)

Regards,
Martin


More information about the Python-Dev mailing list