I would like to understand the internals of the dictionary comparison in python.
The python reference manual says that:
"If a class does not define a __cmp__() method it should not define a __hash__() operation either". Why does this dependency exist?
I tried to google for it, but couldn't find proper documentation. Any pointers will be helpful.
Thank you!
The python reference manual says that:
"If a class does not define a __cmp__() method it should not define a __hash__() operation either". Why does this dependency exist?
I tried to google for it, but couldn't find proper documentation. Any pointers will be helpful.
Thank you!
Comment