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/021961.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 typeGuido van Rossum guido@python.org
Sat, 30 Mar 2002 08:35:11 -0500
> > How will bool influence '__nonzero__'? Currently, Python insists that
> > '__nonzero__ should return an int'. Will this be changed to 'should
> > return a bool'?
> 
> I hope so.

Actually, it doesn't matter.  This is only called by C code that must
then return a *C* 0 or 1, and this code is entirely oblivious to the
difference between int and bool.

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



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