Re: [Python-3000] Is this a bug with list comprehensions or not?

2008-07-09 Thread Guido van Rossum
It's suspect, please file a bug. Thanks for noticing! On Wed, Jul 9, 2008 at 7:49 AM, Carl Johnson <[EMAIL PROTECTED]> wrote: > Python 3.0a5 (r30a5:62856, May 10 2008, 10:34:28) > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > Type "help", "copyright", "credits" or "license" for more information.

Re: [Python-3000] Is this a bug with list comprehensions or not?

2008-07-09 Thread Aahz
On Wed, Jul 09, 2008, Carl Johnson wrote: > > Python 3.0a5 (r30a5:62856, May 10 2008, 10:34:28) > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> def f(x): > ... if x > 5: raise StopIteration > ... > >>> [x for x in range

[Python-3000] Is this a bug with list comprehensions or not?

2008-07-09 Thread Carl Johnson
Python 3.0a5 (r30a5:62856, May 10 2008, 10:34:28) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> def f(x): ... if x > 5: raise StopIteration ... >>> [x for x in range(100) if not f(x)] Traceback (most recent call last): Fi