>>>>> "tleeuwenb...@gmail.com" <tleeuwenb...@gmail.com> (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 <p...@cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: p...@vanoostrum.org
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to