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". [1] http://comments.gmane.org/gmane.comp.python.ideas/16547 ---------- files: is_int_or_str.patch keywords: patch messages: 172467 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Fix is/== misuse type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file27503/is_int_or_str.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16172> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com