[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 == True.

[issue16172] Fix is/== misuse

2012-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file27504/equals_none_or_bool.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16172 ___

[issue16172] Fix is/== misuse

2012-10-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Tests nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16172 ___

[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 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 rep...@bugs.python.org http://bugs.python.org/issue16172