[issue2349] Py3K warn against assigning to True/False

Brett Cannon report at bugs.python.org
Wed Mar 19 18:34:01 CET 2008


Brett Cannon <brett at python.org> added the comment:

Actually, the patch is incomplete. You can still do assignment through
things such as ``def True(): pass``. If you go through ast.c and find
the various places None is protected (search for \"None\" and note the
places where an ast_error() call is made) you should put the warnings there.

----------
resolution: accepted -> 

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


More information about the Python-bugs-list mailing list