Indent testers needed (Prothon)

rzed rzantow at ntelos.net
Sat Apr 3 00:10:23 EST 2004


"Mark Hahn" <mark at prothon.org> wrote in
news:b5rbc.132699$cx5.63133 at fed1read04: 

> This was a bit premature. Some of our test cases give
> indentation errors. I'll post another file when it is really
> ready for testing. 
> 
> Meanwhile comments on our intended solution would be greatly
> appreciated. 
> 
> 
> 

Some odd-looking things can happen, as it stands. These two
loops parse correctly:

alist = [3,7,11]
blist = [1,2,
  3]

# loop 1
ix = 2
for item in blist:
  alist[ix] = alist[ix] + item
  print alist[ix]
  ix = ix - 1

/* loop 2 */
ix = 2
for
  item
    in
      blist
        :
          alist[ix] =
               alist[
          ix
          ]
                            +
           item
          print alist[ix]
          ix =
           ix
           -
           1

-- 
rzed




More information about the Python-list mailing list