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

Antoine Pitrou solipsis at pitrou.net
Tue Oct 9 22:16:00 CEST 2012

On Tue, 09 Oct 2012 22:15:42 +0200
Georg Brandl <g.brandl at gmx.net> wrote:
> The point is that in 99.9...% of cases,
>   if x == True:
> is just
>   if x:

But it's not dangerous to write `if x == True`, and so there isn't any
point in warning. As Raymond said, this is a job for a style checker.



Software development and contracting: http://pro.pitrou.net

More information about the Python-ideas mailing list