>>>>> "[email protected]" <[email protected]> (tc) wrote:

>tc> What, exactly, needs to be in place for an object to be a valid
>tc> dictionary key?

It must have __hash__ and __cmp__ or __eq__ methods. Newstyle classes
inherit these from object.
-- 
Piet van Oostrum <[email protected]>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: [email protected]
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to