A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/ipython/ipython/issues/1554/ below:

wrong behavior of the all function on iterators · Issue #1554 · ipython/ipython · GitHub

Hello to everyone,

I'm exploring the potential of the new IPython notebook and i found amazing...but i just stumbled on something that look like a serious bug to me:
i'm using the all function to test whenever a set of condition is fulfilled, and i run into this strange phenomenon when i use an iterator into it:

all( [ i for i in [False,False] ] )
#return False as expected
all( ( i for i in [False,False] ) )
all(  i for i in [False,False]  )
#Both return True!!!!!

I tested these same lines both in the python and IPython shells, and everything work fine, so i'm puzzled.
I'm doing something wrong or is this a pretty seriuos bug?

my system is a


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