How can I use __setitem__ method of dict object?
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Tue Feb 6 17:10:23 EST 2007
jeremito a écrit :
> On Feb 6, 2:36 pm, Bruno Desthuilliers
> <bdesth.quelquech... at free.quelquepart.fr> wrote:
>
(snip)
>>Here's an alternative implementation, so you get the idea.
>>
>>class Xs(dict):
oops ! I meant:
class Xs(object):
of course...
(snip)
> I guess I just
> need more experience.
Possibly - but not only. You may want to have a look at the
FineManual(tm) for all this kind of "magic", starting with :
http://docs.python.org/ref/specialnames.html
http://docs.python.org/ref/sequence-types.html
HTH
More information about the Python-list
mailing list