[Python-3000] Status of True, False, bool type
Mike Orr
sluggoster at gmail.com
Mon Jan 1 20:13:57 CET 2007
On 1/1/07, Guido van Rossum <guido at python.org> wrote:
> On 1/1/07, James Thiele <python3now at gmail.com> wrote:
> > PEP 3100 states:
> > None becomes a keyword [4] (What about True, False?)
> >
> > Has a decision been made?
>
> No, but I think the argument for making True/False reserved words is
> pretty weak.
>
> > Also a bool acts like an int in various contexts. For example:
> > >>> True == 1
> > True
> > >>> False == 0
> > True
> > >>> 16 + (0 == 0)
> > 17
> >
> > Will this behavior continue?
>
> Yes. Don't confuse Python with Java.
Huh? 'True == 1' is a "feature"? '16 + (0 == 0)' being illegal is a
"Javaism"? Would somebody care to explain this? It's acceptable that
2 is true but not True? Why do we need 1 for True at all if we have
True?
--
Mike Orr <sluggoster at gmail.com>
More information about the Python-3000
mailing list