[Python-Dev] Re: PEP 285: Adding a bool type

Erik Max Francis max at alcyone.com
Wed Apr 3 14:31:34 EST 2002


Fredrik Lundh wrote:

> Mark McEahern wrote:
> 
> > So what's different?
> 
> more than one way to do it.  more than one concept to
> explain to newcomers.  more than one "obviously correct"
> way to do things.  less is more.  etc.

But there already _is_ "more than one way to do it."  Python has a wide
variety of kinds of objects which are treated as false in truth tests,
this just adds one more whose purpose is indicate an exclusive attempt
to distinguish between true and false (except for all the others which
can take on a wide variety of "true" values).

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Nationalism is an infantile sickness.
\__/ Albert Einstein
    Alcyone Systems' Daily Planet / http://www.alcyone.com/planet.html
 A new, virtual planet, every day.



More information about the Python-list mailing list