Comparison with False - something I don't understand

Harishankar v.harishankar at gmail.com
Thu Dec 2 05:04:11 EST 2010


On Thu, 02 Dec 2010 09:58:18 +0000, Nobody wrote:
> If you want to test specifically for True, False or None, use "is"
> rather than an equality check. This eliminates the warning and doesn't
> risk misleading someone reading the code.

Thanks so much for this very specific answer. I guess "is" is what I am 
looking for. :-)

-- 
Harishankar (http://harishankar.org http://lawstudentscommunity.com)




More information about the Python-list mailing list