• Neal Norwitz's avatar
    Fix SF bug #1167751, Argument genexp corner case · 37c0844b
    Neal Norwitz yazdı
    Incorrect code was generated for:
    
      foo(a = i for i in range(10))
    
    This should have generated a SyntaxError.  Fix the Grammar so
    it raises a SyntaxError and test it.
    
    I'm uncertain whether this should be backported.  It makes
    something that was Syntactically valid invalid.  However,
    the code would either be completely broken or do the wrong thing.
    37c0844b
graminit.c 34.9 KB