Re: super and __init__

2006-09-11 Thread Michele Simionato
Noah wrote: > Am I the only one that finds the super function to be confusing? No, see for instance http://fuhm.net/super-harmful/ Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: super and __init__

2006-09-09 Thread Duncan Booth
"Jason" <[EMAIL PROTECTED]> wrote: > As far as I can tell, the best way to use super() with an __init__ > function is to stick to a rigid function signiture. ... > Unfortunately, I don't see a way of avoiding this problem with super(). An easy way to avoid changing the method signature is to use

Re: super and __init__

2006-09-08 Thread Noah
Jason wrote: > Noah wrote: > > Am I the only one that finds the super function to be confusing? > > Unfortunately, I don't see a way of avoiding this problem with super(). > Any such super command resolves in the mro order. Since the mro order > invoked at a certain class can change depending on

Re: super and __init__

2006-09-08 Thread Jason
Noah wrote: > Am I the only one that finds the super function to be confusing? > > I have a base class that inherits from object. > In other words new style class: > > class foo (object): > def __init__ (self, arg_A, arg_B): > self.a = arg_A > self.b = arg_B > # Do I n

super and __init__

2006-09-08 Thread Noah
Am I the only one that finds the super function to be confusing? I have a base class that inherits from object. In other words new style class: class foo (object): def __init__ (self, arg_A, arg_B): self.a = arg_A self.b = arg_B # Do I need to call __init__ on "objec