"0 in [True,False]" returns True

Erik Max Francis max at alcyone.com
Tue Dec 13 05:14:52 EST 2005


bonono at gmail.com wrote:

> True, but if that is the only reason, Two built-in value of
> True/False(0/1) serves the need which is what is now(well sort of). Why
> have seperate types and distinguish them ?

Because of this:

	x = True
	y = 1 # but I mean it to represent true

	print x, y

Besides, it's not the only reason, but it's a good one.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   Ipsa scientia potestas est. "Knowledge itself is power."
   -- a Latin proverb



More information about the Python-list mailing list