A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-March/020811.html below:

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

[Python-Dev] For review: PEP 285: Adding a bool typeMartin 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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4