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/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 -- http://mail.python.org/mailman/listinfo/python-list