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
..
2001-05-05 21:05:01 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-01-25 20:04:14 +00:00
2001-07-16 02:29:45 +00:00
2001-03-23 04:17:58 +00:00
2000-09-01 23:29:29 +00:00
2000-08-03 16:24:25 +00:00
2001-07-16 02:29:45 +00:00
2000-07-09 00:20:36 +00:00
2001-06-09 07:59:43 +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-05-14 12:17:34 +00:00
2001-05-08 15:19:57 +00:00
2001-06-23 05:26:56 +00:00
2001-03-23 04:17:58 +00:00
2001-06-18 22:08:13 +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
2001-04-23 14:08:49 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-06-11 21:23:58 +00:00
2001-01-28 00:27:39 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-01-25 22:13:34 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-04-23 14:08:49 +00:00
2001-03-22 18:26:47 +00:00
2001-06-18 22:08:13 +00:00
2001-03-02 06:10:17 +00:00
2001-07-16 05:37:24 +00:00
2001-04-18 04:31:01 +00:00
2000-09-01 23:29:29 +00:00
2000-12-22 21:51:10 +00:00
2000-09-01 23:29:29 +00:00
2001-04-20 19:13:02 +00:00
1997-10-20 23:50:01 +00:00
2000-11-03 08:18:37 +00:00
2000-09-01 23:29:29 +00:00
2001-05-14 22:32:33 +00:00
2001-07-03 23:39:52 +00:00
2001-07-16 02:29:45 +00:00
2001-07-16 05:37:24 +00:00
2000-09-01 23:29:29 +00:00
2001-07-09 12:30:54 +00:00
2000-07-09 00:55:06 +00:00
2001-06-16 05:11:17 +00:00
2000-09-01 23:29:29 +00:00
2001-06-18 22:08:13 +00:00
2000-12-15 22:01:39 +00:00
2000-09-01 23:29:29 +00:00
2000-09-01 23:29:29 +00:00
2001-05-28 22:30:08 +00:00
2001-01-19 09:45:02 +00:00
2001-06-27 22:08:26 +00:00