PEP 285: Adding a bool type

Alex Martelli aleax at aleax.it
Wed Apr 3 05:10:36 EST 2002


David Eppstein wrote:

> 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.

You'd see them when client-code using your external-interfacing module
need to show them to you, specifically.  And, basically, nowhere else.
Ah, bliss.  I doubt that's the solution we'll see, but that's quite
another issue -- it would be by far the least of evils.


Alex




More information about the Python-list mailing list