Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Yes, PEP8 says::
Comparisons to singletons like None should always be done with 'is' or 'is not', never the equality operators. Reading the patch: - a change modifies "x == False" into "not x", another moves some lines. I checked that they are OK (x is already the result of a comparison). - some occurrences of "x != None" are not replaced. Why? (ex. in test_ast.py) __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2503> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com