• Jeremy Hylton's avatar
    Improved handling of syntax errors. · c960f260
    Jeremy Hylton yazdı
    Expand set of errors caught in set_context().  Some new errors, some
    old error messages changed for consistency.
    
    Fixed error checking in generator expression code.  The first set of
    tests were impossible condition given the grammar.  In general, the
    ast code uses REQ() for those sanity checks.
    
    Fix some error handling for augmented assignments.  As comments in the
    code explain, set_context() ought to work here, but I got unexpected
    crashes when I tried it.  Should come back to this.
    
    Add note to Grammar that yield expression is a special case.
    
    Add doctest cases for SyntaxErrors raised by ast.c.
    c960f260
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...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...