obj[1] *and* obj['foo']

Jeremy Fincher tweedgeezer at hotmail.com
Tue Aug 6 23:16:10 EDT 2002


Travis Shirk <travis at pobox.com> wrote in message news:<ul0ich5k1nu27 at corp.supernews.com>...
> I'm subclassing list (python 2.2) so I understand why the *sequence* does
> not allow non-int keys, and I assume that if I subclassed dict the reverse
> type clash would occur.  

Dictionaries seem to handle integer keys just fine...

Jeremy



More information about the Python-list mailing list