string/list comparison

Tim Chase python.list at tim.thechases.com
Thu Jul 6 15:17:26 EDT 2006


>   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






More information about the Python-list mailing list