• Tim Peters's avatar
    Bug #132313 error message confusing for assignment in lambda. · 4e30378e
    Tim Peters yazdı
    They're actually complaining about something more specific, an assignment
    in a lambda as an actual argument, so that Python parses the
    lambda as if it were a keyword argument.  Like f(lambda x: x[0]=42).
    The "lambda x: x[0]" part gets parsed as if it were a keyword, being
    bound to 42, and the resulting error msg didn't make much sense.
    4e30378e
compile.c 108 KB