Mercurial > cpython-lru_cache-weakref
diff Python/codecs.c @ 35752:47496e7dbf2f legacy-trunk
Fix SF bug #1167751, Argument genexp corner case
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.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Fri, 21 Oct 2005 06:24:02 +0000 |
| parents | 201986d6d9d6 |
| children | 79374eb6db51 |
