Tim Peters
fe2127d3cb
Ugly. A pile of new xxxFlags() functions, to communicate to the parser
...
that 'yield' is a keyword. This doesn't help test_generators at all! I
don't know why not. These things do work now (and didn't before this
patch):
1. "from __future__ import generators" now works in a native shell.
2. Similarly "python -i xxx.py" now has generators enabled in the
shell if xxx.py had them enabled.
3. This program (which was my doctest proxy) works fine:
from __future__ import generators
source = """\
def f():
yield 1
"""
exec compile(source, "", "single") in globals()
print type(f())
2001-07-16 05:37:24 +00:00
..
2000-05-02 18:34:30 +00:00
2000-09-01 23:29:29 +00:00
2001-07-16 02:29:45 +00:00
2001-07-16 02:29:45 +00:00
2000-09-26 05:46:01 +00:00
2001-07-16 02:29:45 +00:00
2000-07-22 18:47:25 +00:00
2000-09-04 00:54:56 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-01-19 23:34:06 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-01-10 21:17:27 +00:00
2000-09-01 23:29:29 +00:00
2001-05-09 00:50:59 +00:00
2001-05-30 06:09:50 +00:00
2001-04-20 19:13:02 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-07-16 03:11:48 +00:00
2001-05-29 17:46:19 +00:00
2000-09-05 04:40:39 +00:00
2001-04-12 20:53:31 +00:00
2000-09-01 23:29:29 +00:00
2001-01-18 03:03:16 +00:00
2000-11-03 08:18:37 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-06-18 22:08:13 +00:00
2000-07-31 15:28:04 +00:00
2001-07-05 03:47:53 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-06-18 22:08:13 +00:00
2000-09-01 23:29:29 +00:00
2001-03-12 21:03:26 +00:00
2000-09-01 23:29:29 +00:00
2000-07-22 18:47:25 +00:00
2001-07-03 23:39:52 +00:00
2001-07-16 05:37:24 +00:00
2000-09-01 23:29:29 +00:00
2000-07-22 18:47:25 +00:00
2000-09-01 23:29:29 +00:00
2000-07-22 18:47:25 +00:00
2001-01-27 06:20:08 +00:00
2001-06-18 22:08:13 +00:00
2001-06-27 19:19:46 +00:00
2000-09-01 23:29:29 +00:00
2000-11-13 19:45:45 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2000-10-12 20:58:32 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2000-10-06 15:48:38 +00:00
2000-09-01 23:29:29 +00:00