On 8 August 2012 17:59, Oleg Broytman <firstname.lastname@example.org>
To distinguish False and None for a tri-state variable that can have
On Thu, Aug 09, 2012 at 02:18:53AM +1000, Ben Finney <email@example.com
> What is a compelling use case for checking precisely for True or False?
3 values - "yes", "no" and "unspecified" - True, False and None in
Or when testing, I often want to check that a method *really* returns True or False rather than some object that happens to evaluate to True or False.
Oleg Broytman http://phdru.name/ firstname.lastname@example.org
Programmers don't die, they just GOSUB without RETURN.
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html