Comparing strings from the back?

Andrew Artajos andrew.artajos.dev at gmail.com
Wed Sep 5 04:55:51 EDT 2012


a random idea:

you could compare strings by their hashes..

print hash("randomstring") == hash("randomstring")
print hash("randomstring") == hash("randoMstring")

--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120905/a90905a8/attachment.html>


More information about the Python-list mailing list