Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19635
| From | Neal Becker <ndbecker2@gmail.com> |
|---|---|
| Subject | Re: surprising result all (generator) (bug??) |
| Date | 2012-01-31 08:24 -0500 |
| References | <mailman.5237.1328013618.27778.python-list@python.org> <3ba87a5d-7092-432e-9bb8-c394fe69fe81@n12g2000yqb.googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5239.1328016289.27778.python-list@python.org> (permalink) |
Mark Dickinson wrote: > On Jan 31, 6:40 am, Neal Becker <ndbeck...@gmail.com> 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 > > What does: > >>>> import numpy >>>> all is numpy.all > > give you? > > -- > Mark In [31]: all is numpy.all Out[31]: True Excellent detective work, Mark! But it still is unexpected, at least to me.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
surprising result all (generator) (bug??) Neal Becker <ndbecker2@gmail.com> - 2012-01-31 07:40 -0500
Re: surprising result all (generator) (bug??) Mark Dickinson <mdickinson@enthought.com> - 2012-01-31 04:44 -0800
Re: surprising result all (generator) (bug??) Neal Becker <ndbecker2@gmail.com> - 2012-01-31 08:24 -0500
Re: surprising result all (generator) (bug??) Mark Dickinson <mdickinson@enthought.com> - 2012-01-31 06:25 -0800
csiph-web