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

Skip Montanaro skip at pobox.com
Mon Mar 18 16:57:03 CET 2013


On Mon, Mar 18, 2013 at 8:50 AM, Neal Becker <ndbecker2 at gmail.com> wrote:
> def F(x):
>     return x
>
> x = 2
> F(x) = 3
>
>     F(x) = 3
> SyntaxError: can't assign to function call
>
> Do we really need this restriction?  There do exist other languages without it.

I think this belongs on python-ideas before launching into discussions
of syntax and semantics on python-dev.

Skip


More information about the Python-Dev mailing list