[Tutor] Staring myself blind

Toon Pieton pytutmail at gmail.com
Sat Jan 20 21:21:06 CET 2007


Hey friendly users!

In a program I'm writing, I'm getting a Tab/space error, with the usual 1)
identation is incorrect or 2) mixes tabs and spaces. I just can't seem to
find. I tried selecting everything and untabbing it, no workie. I searched
an searched and searched, but couldnt find anything that is really wrong.

The error shows up on this line:
                        highcard = [z[8],z[7],z[6],z[5],z[4]]

The lines surrounding this one are:
                while zab < winlen:
                    yx = winner[int(winkeys[zab])]
                    xz = yx[1]
                    z = [yx[0],xz[0],xz[1],xz[2],xz[3],xz[4],xz[5)],xz[6]]
                    # Card 1
                    if z[7] > highcard[0]:
                        highcard = [z[8],z[7],z[6],z[5],z[4]]
                        defwinner = [winkeys[zab]]
                    elif z[7] == highcard[0]:

I can't post the whole program, since it's ~1000 lines long.

Does anybody see what causes the problem? Or have any tips how to find the
error easily?

Thanks in advance!
Toon Pieton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070120/92b07d71/attachment.html 


More information about the Tutor mailing list