[Tutor] append index out of range
lina
lina.lastname at gmail.com
Thu Jan 12 15:38:23 CET 2012
Hi,
there is a file
$ cat atom-pair_9.out | wc -l
75426
there is 75426 lines there,
results=[]
unique={}
for line in open(tobetranslatedfile,"r"):
tobetranslatedparts=line.strip().split()
results.append(dictionary[tobetranslatedparts[2]])
it complains
results.append(dictionary[tobetranslatedparts[2]])
IndexError: list index out of range
is it really too large this file?
Thanks,
More information about the Tutor
mailing list