PEP 284, Integer for-loops (code bash?)

Michael Chermside mcherm at destiny.com
Mon Mar 11 10:26:27 EST 2002


 > 1.  Michael! Your Computer thinks its April!  You are making
 >     python archives one month ahead of yourself!
 >     (see: 
http://mail.python.org/pipermail/python-list/2002-April/091714.html)

Yipes! Thanks. Someone's idea of an april fools joke on me maybe?
Anyway, thanks for point it out.


 > 2. Haskell, which I mispelt, shame on me, I know better, is a
 >    functional language.

I certainly know of the language and didn't even notice the misspelling.


 >    It has functional syntax - don't go there looking
 >    for a 'for loop'.  However, it also has list comprehensions, (which is
 >    where we got them from, I think).  So, what I meant was 'I wish that
 >    Guido had used Haskell's syntax for arithmetic sequences in Python's
 >    for loops'.  That is as follows:

I figured you meant something like that.

 >    [1..10]     => [1,2,3,4,5,6,7,8,9,10]
 >    [1,3..8]    => [1,3,5,7]
 >    [1,3..]     => [1,3,5,7,9, ... (infinite sequence)

Aha! Abundantly clear.

 > 3.  Make the time to learn Haskell.  It is simply too much fun.

It's next on my list.

Thanks!

-- Michael Chermside










More information about the Python-list mailing list