• Tim Peters's avatar
    Ugly. A pile of new xxxFlags() functions, to communicate to the parser · fe2127d3
    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 Loading commit data...
acceler.c Loading commit data...
assert.h Loading commit data...
bitset.c Loading commit data...
firstsets.c Loading commit data...
grammar.c Loading commit data...
grammar1.c Loading commit data...
intrcheck.c Loading commit data...
listnode.c Loading commit data...
metagrammar.c Loading commit data...
myreadline.c Loading commit data...
node.c Loading commit data...
parser.c Loading commit data...
parser.h Loading commit data...
parsetok.c Loading commit data...
pgen.c Loading commit data...
pgen.h Loading commit data...
pgenmain.c Loading commit data...
printgrammar.c Loading commit data...
tokenizer.c Loading commit data...
tokenizer.h Loading commit data...