Fredrik Lundh wrote:
how does the dictionary know if you want key value equality or key identity equality?
By the __hash__ and __eq__ methods you provide on your object.
so what you're saying is that Python dictionaries should work just like Python dictionaries work today.
sorry for wasting my time.
Don't be sorry, reading your posts was a real pleasure.
No, really.
-- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list