true = 1

Daniel Dittmar daniel at dittmar.net
Sat Jan 12 14:36:31 EST 2002


Mark McEahern wrote:

> I don't know whether this has ever been proposed, but how about built-in
> "constants" for true and false?
> 
> 	true = 1
> 	false = 0
> 

+1
except that I would prefer
true = 'true'
false = None
because that would be more meaningful when used in print , %s etc.

Daniel




More information about the Python-list mailing list