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/2005-September/056589.html below:

[Python-Dev] bool(iter([])) changed between 2.3 and 2.4

[Python-Dev] bool(iter([])) changed between 2.3 and 2.4 [Python-Dev] bool(iter([])) changed between 2.3 and 2.4Guido van Rossum guido at python.org
Wed Sep 21 01:34:09 CEST 2005
On 9/20/05, Delaney, Timothy (Tim) <tdelaney at avaya.com> wrote:
> In any case, it's simple to get the 2.3 behaviour back - just add
> __nonzero__. I think that could validly be considered a bugfix.

Alas not -- it would still be a functionality change relative to 2.4 and 2.4.1.

Also, an object whose __len__() returns 0 but whose __nonzero__()
returns True would be an anomaly.

The best we can do IMO is to change it back in 2.5.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

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