[issue2349] Py3K warn against assigning to True/False

Benjamin Peterson report at bugs.python.org
Tue Apr 29 23:48:55 CEST 2008


Benjamin Peterson <musiccomposition at gmail.com> added the comment:

As I looked over the code again, I realized that it doesn't help to just
do a normal warning while compiling because the line number isn't
supplied. You have to use PyWarn_Explicit for that (see the warning
about backquotes). Since the filename (in the compiling struct) isn't
passed around to all ast helpers, you can't warn in every function.
Therefore, I have #2720.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2349>
__________________________________


More information about the Python-bugs-list mailing list