surprising result all (generator) (bug??)

Neal Becker ndbecker2 at gmail.com
Tue Jan 31 07:40:02 EST 2012


I was just bitten by this unexpected behavior:

In [24]: all ([i > 0 for i in xrange (10)])
Out[24]: False

In [25]: all (i > 0 for i in xrange (10))
Out[25]: True




More information about the Python-list mailing list