>>>>> "Terry" == Terry Hancock <[EMAIL PROTECTED]> writes:
> Note that it is trivial to catch collisions on entry and correct them: > key = hash(url_string) > i = 0 > if d.has_key(key): > while d.has_key(key): > i += 1 hash is a number. It's sufficient to do while d.has_key(key): key += 1 > I am a little surprised that hash(hash(s)) == hash(s), is that actually > true? >>> hash(42) 42 Ganesan -- Ganesan Rajagopal -- http://mail.python.org/mailman/listinfo/python-list