• Guido van Rossum's avatar
    Add a really stupid warning about 'yield' used as an identifier. · da62ecc9
    Guido van Rossum yazdı
    This is really stupid because it cannot be suppressed or altered using
    the warning framework; that's because the warning framework is built
    on Python interpreter internals, and the parser generator doesn't have
    access to any of those (you cannot use anything of type PyObject * in
    the parser).
    
    But it's better than nothing, and implementing a proper check for this
    appears to require modifying compile.c in a dozen places, for which I
    don't have the stamina today.  I promise we'll do better in 2.2a2.
    
    At least it tells you the filename and line number (unlike the first
    hack I considered :-).
    da62ecc9
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...