[Python-ideas] Make "is" checks on non-singleton literals errors

Serhiy Storchaka storchaka at gmail.com
Wed Oct 10 00:00:07 CEST 2012


On 10.10.12 00:50, Arnaud Delobelle wrote:
>> Of cause. However in Lib/unittest/main.py I found a lot of "if x != False:"
>> which is not equivalent to just "if x:". It is equivalent to "if x is None
>> or x:" and so I left it as is.
>
> ???

...in context of Lib/unittest/main.py.





More information about the Python-ideas mailing list