-
Tim Peters yazdı
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())
fe2127d3
Adı |
Son kayıt (commit)
|
Son güncelleme |
---|---|---|
.. | ||
.cvsignore | ||
acceler.c | ||
assert.h | ||
bitset.c | ||
firstsets.c | ||
grammar.c | ||
grammar1.c | ||
intrcheck.c | ||
listnode.c | ||
metagrammar.c | ||
myreadline.c | ||
node.c | ||
parser.c | ||
parser.h | ||
parsetok.c | ||
pgen.c | ||
pgen.h | ||
pgenmain.c | ||
printgrammar.c | ||
tokenizer.c | ||
tokenizer.h |