A RetroSearch Logo

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

Search Query:

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

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

[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
11 Mar 2002 06:12:06 +0100
Greg Ewing <greg@cosc.canterbury.ac.nz> writes:

> Skip Montanaro <skip@pobox.com>:
> 
> > Guido's proposal is for bool to be a
> > subclass of int.  Consequently, 28 + True should yield 29
> 
> But True - 1 won't equal False. Should it?

Despite that Guido said "no" here, I think the answer is "yes", and
the first sentence is wrong: True - 1 == False. True - 1 won't be
identical with False, but it will be equal to it.

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