[Python-3000] Status of True, False, bool type

Guido van Rossum guido at python.org
Mon Jan 1 17:50:11 CET 2007


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.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list