Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19651 > unrolled thread

Re: surprising result all (generator) (bug??)

Started byMRAB <python@mrabarnett.plus.com>
First post2012-01-31 17:29 +0000
Last post2012-01-31 17:29 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: surprising result all (generator) (bug??) MRAB <python@mrabarnett.plus.com> - 2012-01-31 17:29 +0000

#19651 — Re: surprising result all (generator) (bug??)

FromMRAB <python@mrabarnett.plus.com>
Date2012-01-31 17:29 +0000
SubjectRe: surprising result all (generator) (bug??)
Message-ID<mailman.5254.1328030947.27778.python-list@python.org>
On 31/01/2012 12:40, Neal Becker wrote:
> 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
>
Which version of Python?

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web