On Apr 8, 8:44 pm, Piet van Oostrum <[email protected]> wrote: > >>>>> "[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]
Awesome, thanks. I wonder if this is an 'old-style' class, something I've never used myself... I'll have to do some research. -T -- http://mail.python.org/mailman/listinfo/python-list
