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


Groups > comp.lang.python > #19651

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python@mrabarnett.plus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:bug': 0.04; 'unexpected': 0.07; 'behavior:': 0.09; 'from:addr:python': 0.09; 'python?': 0.15; 'from:addr:mrabarnett.plus.com': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:84.92': 0.16; 'received:84.92.122': 0.16; 'received:84.92.122.60': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'reply-to:addr:python-list': 0.16; 'subject:result': 0.16; 'xrange': 0.16; 'wrote:': 0.16; 'header :In-Reply-To:1': 0.22; 'version': 0.31; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.33; 'received:84': 0.34; 'reply- to:addr:python.org': 0.34; 'subject: (': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'header:Reply-To:1': 0.71; 'reply- to:no real name:2**0': 0.72; 'bitten': 0.84
X-CM-Score 0.00
X-CNFS-Analysis v=2.0 cv=borO9Tmi c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=FFsdPcU1_MIA:10 a=SkxFP0V613EA:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=c8_ZbGu3ouLOdYrDLEgA:9 a=wPNLvfGTeEIA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117
X-AUTH mrabarnett:2500
Date Tue, 31 Jan 2012 17:29:17 +0000
From MRAB <python@mrabarnett.plus.com>
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-Version 1.0
To python-list@python.org
Subject Re: surprising result all (generator) (bug??)
References <jg8nf2$uh6$1@dough.gmane.org>
In-Reply-To <jg8nf2$uh6$1@dough.gmane.org>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To python-list@python.org
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5254.1328030947.27778.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1328030947 news.xs4all.nl 6848 [2001:888:2000:d::a6]:33893
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19651

Show key headers only | View raw


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?

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web