[issue16172] Fix is/== misuse

2012-10-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: Also http://hg.python.org/cpython/rev/332b93ce7bf9 -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker __

[issue16172] Fix is/== misuse

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 842276ae4a3f by Benjamin Peterson in branch '3.3': compare with equality not identity (issue #16172) http://hg.python.org/cpython/rev/842276ae4a3f -- nosy: +python-dev ___ Python tracker

[issue16172] Fix is/== misuse

2012-10-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Tests nosy: +ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue16172] Fix is/== misuse

2012-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file27504/equals_none_or_bool.patch ___ Python tracker ___ ___ Python-bugs-li

[issue16172] Fix is/== misuse

2012-10-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here are two patches written on the discussion in Python-Ideas [1]. The first patch fixes incorrect use of "x is 0" or "x is 'foo'". Result of this operations is implementation details. The second patch changes non-idiomatic use of "x == None" or "x == Tru