hash()

John Marshall John.Marshall at ec.gc.ca
Mon Dec 5 16:56:05 CET 2005


Hi,

For strings of > 1 character, what are the chances
that hash(st) and hash(st[::-1]) would return the
same value?

My goal is to uniquely identify multicharacter strings,
all of which begin with "/" and never end with "/".
Therefore, st != st[::-1].

Thanks,
John



More information about the Python-list mailing list