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/056588.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.4Delaney, Timothy (Tim) tdelaney at avaya.com
Wed Sep 21 01:23:53 CEST 2005
Fred L. Drake, Jr. wrote:

> On Tuesday 20 September 2005 17:49, Guido van Rossum wrote:
>  > I realize that this was a deliberate feature, and that it exists in
>  > 2.4 as well as in 2.4.1 and will in 2.4.2; yet, I'm not sure I
> *like* 
> 
> I wasn't paying any attention at the time, so I don't know what was
> discussed. Some discussion here just now leads me to believe that at
> least two of us here (including myself) think iterators shouldn't
> have length at all: they're *not* containers and shouldn't act that
> way. 

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.

Tim Delaney
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