Re: Create child class of Python dict with modified values

2010-08-09 Thread dmitrey
On Aug 9, 1:38 pm, Peter Otten <__pete...@web.de> wrote: > dmitrey wrote: > > hi all, > > suppose I have defined a child class of Python dict, currently it > > constructor looks like that: > >     def __init__(self, *args, **kwargs): > >         dict.__init__(self, *args, **kwargs) > >         #(+s

Re: Create child class of Python dict with modified values

2010-08-09 Thread Peter Otten
dmitrey wrote: > hi all, > suppose I have defined a child class of Python dict, currently it > constructor looks like that: > def __init__(self, *args, **kwargs): > dict.__init__(self, *args, **kwargs) > #(+some more insufficient code) > > Constructor should be capable of call

Create child class of Python dict with modified values

2010-08-09 Thread dmitrey
hi all, suppose I have defined a child class of Python dict, currently it constructor looks like that: def __init__(self, *args, **kwargs): dict.__init__(self, *args, **kwargs) #(+some more insufficient code) Constructor should be capable of calling with either any way Python d