class Foo(object):
def whee(self):
return 77
class Bar(Foo):
def whee(self):
return super(Bar, self).whee() + 1
class Baz(Foo):
def whee(self):
return super(self.__class__, self).whee() + 1
Both Bar
and Baz
return the same result for whee()
. I'm used to the syntax in Bar
. Is there any reason I shouldn't use the syntax in Baz
?