grandparent method with super

Martin Manns mmanns at gmx.de
Thu Apr 5 16:19:39 EDT 2007


Hi,

I have a class structure as follows and I would like to invoke the
method A.m() from D.m

class A(object):
	def m(self):
class B(A):
	def m(self):
class C(A):
	def m(self):
class D(B,C):
	def m(self):
		# Call A.m with super?

I have read http://www.python.org/download/releases/2.2/descrintro/ but
I am still stuck.

Thanks in advance

Martin



More information about the Python-list mailing list