> [John Marshall] > > For strings of > 1 character, what are the chances > > that hash(st) and hash(st[::-1]) would return the > > same value? > On Mon, Dec 05, 2005 at 09:11:14PM -0500, Tim Peters wrote: > First, if `st` is a string, `st[::-1]` is a list. Do you really mean > to compare string hashes with list hashes here? I'm going to assume > not.
It is? >>> st = "french frogs" >>> st[::-1] 'sgorf hcnerf' (Python 2.3) Jeff
pgpqcPNSOBZiC.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list