__coerce__ called for dict keys?
Aahz
aahz at pythoncraft.com
Sun Nov 3 10:48:10 EST 2002
In article <Xns92B7939E346B6ID134675userdfncisd at 130.133.1.4>,
Paul D. Lusk <plusk at radford.edu> wrote:
>
>I think you need __eq__ rather than __cmp__ in 2.2
Nope. __eq__ gets called before __cmp__, but __cmp__ gets called if
__eq__ isn't defined. See PEP 207.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Project Vote Smart: http://www.vote-smart.org/
More information about the Python-list
mailing list