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
"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
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
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
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