> sstr = sesslist[0] <<<<<<<<<<<<<<<<<< these should be the same > trstr = trlist[3] <<<<<<<<<<<<<<<<<< "Summer A" > > sstr.strip(sstr) > trstr.strip(trstr) > > print "slen = ",len(sstr) > print "trlen = ",len(trstr)
Have you tried printing the repr(sstr) and repr(trstr) to see what Python thinks they are? Without having these values posted to the list, it's near impossible to be of more assistance. As soon as you do print them out, you should be able to visdiff them and see where matters have gone awry. -tkc -- http://mail.python.org/mailman/listinfo/python-list