• 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
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
setup.py Loading commit data...