PEP 285: Adding a bool type

David Eppstein eppstein at ics.uci.edu
Wed Apr 3 03:21:06 EST 2002


In article <Lkyq8.45231$pT1.1286029 at news1.tin.it>,
 Alex Martelli <aleax at aleax.it> wrote:

> > expressivity and possibly adds minor functionality (ability to make code
> > that behaves differently for ints and for bools, just like now you can
> 
> It would be quite possible to distinguish between int and Booleans if
> you needed to, even if Booleans came from a specific module rather
> than from builtins, of course.  Such a need is a very rare issue, thus
> it should not be allowed to get in the way for everyday usage.

Sure, but it's only *useful* to distinguish between them if you're 
likely to actually see Booleans in your input, which will only happen if 
they aren't hidden in some back corner where only the 
external-language-interfacers can find them.

-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/



More information about the Python-list mailing list