Is there anything wrong with using something like super(type(self), self).f() to avoid having to hardcode a type? For example:
class A(object): def f(self): print "in A.f()" class B(A): def f(self): super(type(self), self).f() obj = A() obj.f() # prints "in A.f()" By "wrong" I mean, is there any reason why this is just a Bad Idea? Seems helpful to me, if I change the name of the 'B' class, I don't have to change super() calls as well. -- Adam Monsen http://adammonsen.com/ -- http://mail.python.org/mailman/listinfo/python-list