string/list comparison

bruce bedouglas at earthlink.net
Thu Jul 6 15:32:01 EDT 2006


thanks tim...

 the strip should have been 'sstr.strip()'<<<<<<<<<

thanks


-----Original Message-----
From: Tim Chase [mailto:python.list at tim.thechases.com]
Sent: Thursday, July 06, 2006 12:17 PM
To: bedouglas at earthlink.net
Cc: python-list at python.org
Subject: Re: string/list comparison


>   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