diff options
author | Guido van Rossum <guido@python.org> | 2001-07-17 16:53:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-07-17 16:53:11 (GMT) |
commit | da62ecc9aaf6266e10ee6844d81f6145b0ec8413 (patch) | |
tree | 5abdf48783b0d89fca72e664f67ec80cd829c808 /Doc/TODO | |
parent | 16649a803b154ce7fd667f7e4211eb17091fe8b9 (diff) | |
download | cpython-da62ecc9aaf6266e10ee6844d81f6145b0ec8413.zip cpython-da62ecc9aaf6266e10ee6844d81f6145b0ec8413.tar.gz cpython-da62ecc9aaf6266e10ee6844d81f6145b0ec8413.tar.bz2 |
Add a really stupid warning about 'yield' used as an identifier.
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 :-).
Diffstat (limited to 'Doc/TODO')
0 files changed, 0 insertions, 0 deletions