No Boolean type in "types"

Moshe Zadka moshez at math.huji.ac.il
Tue Jun 13 08:12:40 EDT 2000


On Tue, 13 Jun 2000, Thomas Mangin wrote:

> Hello,
> 
> Can someone explain me why the module "types" have no boolean type defined ?
> 
> true = (0==0)
> false = (not true)
> 
> BooleanType = type(0==0)

BooleanType == IntType
--
Moshe Zadka <moshez at math.huji.ac.il>
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com





More information about the Python-list mailing list