Ganesan Rajagopal <[EMAIL PROTECTED]> writes: > hash is a number. It's sufficient to do > > while d.has_key(key): > key += 1
This is called linear probing and is not considered that great a collision resolution strategy for hash tables. Really, if you want an exhaustive study about hashing, see Knuth vol 3. If you're just trying to get the application doing something reasonable, let the database do its job. -- http://mail.python.org/mailman/listinfo/python-list