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

Martin v. Loewis martin@v.loewis.de
09 Mar 2002 00:31:11 +0100


Guido van Rossum <guido@python.org> writes:

> > I would prefer these constants to be named "true" and "false",
> > respectively.
> 
> But all other built-in constants have an initial capital letter: None,
> NotImplemented, Ellipsis, ...

That certainly doesn't apply generally to all of Python: sys.version,
sys.byteorder, sys.platform, sys.maxunicode, string.digits,
string.other_constant_strings.

Those you bring up are conceptually "objects", in the sense that you
want to be aware of identity, whereas true and false are conceptually
"values", in the sense that you never care about their identity, only
about their state.

Regards,
Martin