String comparison problem

Senthoorkumaran Punniamoorthy solution88pro at hotmail.com
Wed Apr 7 08:05:59 EDT 2004


I am printing these information.

	print string.lower(info_res[2])
	print string.lower(md5sum(f_md5))
	print len(string.lower(info_res[2]))
	print len(string.lower(md5sum(f_md5)))
	print str(string.lower(md5sum(f_md5)) == string.lower(info_res[2]))

and the output are

01b7ebfc27437a90cc421c50df8f9ac5
01b7ebfc27437a90cc421c50df8f9ac5
32
32
False

I was wondering why the last print statement is returning false when two 
strings are identical?

Senthoor

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: theretriever1.01h.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20040407/ea45d120/attachment.ksh>


More information about the Python-list mailing list