My own list object

Emile van Sebille emile at
Tue Feb 5 17:17:23 CET 2002

"MDK" <mdk at> wrote in message
news:a3p01b$186eq8$1 at
> Hello,
> I am trying to create my own special type of list object.
> However, when I do x.append('yo') it uses Python's append instead of
the one
> from my class.
> How can I get it to use my append method?  I have tried def __append__
> then called my own class' function but that did not work.  I've played
> __getattr__ but that did not help.

Call the method append and not __append__?


Emile van Sebille
emile at


More information about the Python-list mailing list