[Python-ideas] Programming recommendations (PEP 8) and boolean values

Antoine Pitrou solipsis at pitrou.net
Thu Aug 9 09:15:15 CEST 2012

Le 08/08/2012 16:28, Guido van Rossum a écrit :
> I'd be strongly against changing that rule. If you don't want other
> types than bool, use an isinstance check. Code using "is True" is most
> likely a bug. (It's different for None, since that has no second value
> that is assumed.)

That said, I'm also curious about the answer to Michael's following 
“why does it say that using an identity check is worse than an equality 



More information about the Python-ideas mailing list