pre-PEP for optional 'pass'

Peter Hansen peter at engcorp.com
Tue Apr 16 00:58:27 EDT 2002


Erik Max Francis wrote:
> 
> jepler at unpythonic.net wrote:
> 
> >     [2, 3, 5, 7, 9, ...]
> > would generate successive primes.
> 
> Pretty lousy code, since 9 is not prime.  :-)

No, it just generates some things that are not primes
as well.  You have to admit, though, it _would_ generate
all primes, given enough time... :-)



More information about the Python-list mailing list