Skip to main content
added 28 characters in body
Source Link

the correct way to do will be as following in the old-style classes which doesn't inherit from 'object'

class A: def foo(self): return "Hi there"

class B(A): def foo(self, name): return A.foo(self) + name

class A: def foo(self): return "Hi there" class B(A): def foo(self, name): return A.foo(self) + name 

the correct way to do will be as following in the old-style classes which doesn't inherit from 'object'

class A: def foo(self): return "Hi there"

class B(A): def foo(self, name): return A.foo(self) + name

the correct way to do will be as following in the old-style classes which doesn't inherit from 'object'

class A: def foo(self): return "Hi there" class B(A): def foo(self, name): return A.foo(self) + name 
Source Link

the correct way to do will be as following in the old-style classes which doesn't inherit from 'object'

class A: def foo(self): return "Hi there"

class B(A): def foo(self, name): return A.foo(self) + name