Nick Coghlan wrote:
Objects which compare equal must also end up in the same hash bucket in order for dictionaries to work correctly.
And, if its equality with another object can change during its lifetime, it will never work properly in a dictionary. So in that case you should leave __hash__ unimplemented so that you can't accidentally use one as a dict key. -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com