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-April/022128.html below:

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

[Python-Dev] Re: PEP 285: Adding a bool type [Python-Dev] Re: PEP 285: Adding a bool typeSamuele Pedroni pedroni@inf.ethz.ch
Tue, 2 Apr 2002 21:12:08 +0200
From: M.-A. Lemburg <mal@lemburg.com>
> As a conclusion, I think it would be better to make bool() a 
> new type which does *not* inherit from integers, but which 
> does know how deal with other types which are commonly
> used together with booleans such as integers. However, the
> type should implement boolean algebra and not try to
> mimic integer arithemtic, i.e. True - True raises an
> exception.
> 

"but which 
 does know how deal with other types which are commonly
 used together with booleans such as integers" ??

with deal you mean throwing exceptions?

regards.









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