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

Neal Becker ndbecker2 at gmail.com
Mon Mar 18 14:50:17 CET 2013


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.



More information about the Python-Dev mailing list