On Jan 30, 10:47 am, Peter Otten <[EMAIL PROTECTED]> wrote:
> jeremito wrote:
> > I have created a class that inherits from the list object. I want to
> > override the append function to allow my class to append several
> > copies at the same time with one function call. I want to do
> > someth
jeremito wrote:
> I have created a class that inherits from the list object. I want to
> override the append function to allow my class to append several
> copies at the same time with one function call. I want to do
> something like:
>
> import copy
>
> class MyList(list):
> __init__(self):
I have created a class that inherits from the list object. I want to
override the append function to allow my class to append several
copies at the same time with one function call. I want to do
something like:
import copy
class MyList(list):
__init__(self):
pass
def append(self, ob