Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 22468:eebae4f60d05 legacy-trunk
Disable the parser hacks that enabled the "yield" keyword using a future
statement.
| author | Neil Schemenauer <nascheme@enme.ucalgary.ca> |
|---|---|
| date | Fri, 22 Mar 2002 23:53:36 +0000 |
| parents | 963e814e69cc |
| children | 3a3de6567f1a |
line wrap: on
line diff
--- a/Python/ceval.c Fri Mar 22 23:50:30 2002 +0000 +++ b/Python/ceval.c Fri Mar 22 23:53:36 2002 +0000 @@ -2984,10 +2984,12 @@ result = 1; cf->cf_flags |= compilerflags; } +#if 0 /* future keyword */ if (codeflags & CO_GENERATOR_ALLOWED) { result = 1; cf->cf_flags |= CO_GENERATOR_ALLOWED; } +#endif } return result; }
