PEP 276 Simple Iterator for ints (fwd)

Mikael Olofsson mikael at isy.liu.se
Fri Nov 16 08:38:33 CET 2001


On 15-Nov-2001 Christopher A. Craig wrote:
 >  What do you think "1, 2 .. 5" specifies?
 >  
 >  1) 1, 2, 3, 4, 5
 >  2) 1, 3, 5 
 >  3) 1, 3

Don't forget the possibility to interprete that as (1,(2,3,4,5)) or
something similar. The notation is definitely ambiguous.

 >  If I saw it on a math paper, I would immediately presume (1).  

Me too.

/Mikael

-----------------------------------------------------------------------
E-Mail:  Mikael Olofsson <mikael at isy.liu.se>
WWW:     http://www.dtr.isy.liu.se/dtr/staff/mikael               
Phone:   +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date:    16-Nov-2001
Time:    08:35:29

         /"\
         \ /     ASCII Ribbon Campaign
          X      Against HTML Mail
         / \

This message was sent by XF-Mail.
-----------------------------------------------------------------------
Linköpings kammarkör: www.kammarkoren.com




More information about the Python-list mailing list