RE: string/list comparison

2006-07-06 Thread bruce
thanks tim... the strip should have been 'sstr.strip()'<<<<<<<<< thanks -Original Message- From: Tim Chase [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 12:17 PM To: [EMAIL PROTECTED] Cc: python-list@python.org Subject: Re: string/li

Re: string/list comparison

2006-07-06 Thread Tim Chase
> 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

string/list comparison

2006-07-06 Thread bruce
hi... i have the following piece of code that i'm testing... it should be using/comparing two equal strings. apparently it doesn't. i've tried to do a "strip" to remove pre/post whitespace.. but there appears to be something else going on. i suspect that there is some type of unicode going on. is