pre-PEP for optional 'pass'

David C. Ullrich ullrich at math.okstate.edu
Tue Apr 16 11:43:22 EDT 2002


On Mon, 15 Apr 2002 21:42:00 -0700, Erik Max Francis <max at alcyone.com>
wrote:

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

No, that's the beauty of it. Any moron could design
something to generate primes from a hint like 
"[2, 3, 5, 7, 11, ...]"; it takes a truly brilliant 
compiler to recognize that "[2, 3, 5, 7, 9, ...]" was 
an attempt to write down the first five primes and 
respond accordingly.

>-- 
> Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
> __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
>/  \ Nationalism is an infantile sickness.
>\__/ Albert Einstein
>    Alcyone Systems' Daily Planet / http://www.alcyone.com/planet.html
> A new, virtual planet, every day.


David C. Ullrich



More information about the Python-list mailing list