16 lines
217 B
Python
16 lines
217 B
Python
|
|
||
|
class A:
|
||
|
def a(self):
|
||
|
return 'a'
|
||
|
try:
|
||
|
object
|
||
|
except NameError:
|
||
|
pass
|
||
|
else:
|
||
|
class B(object, A):
|
||
|
def b(self):
|
||
|
return 'b'
|
||
|
class Inherit(A):
|
||
|
def a(self):
|
||
|
return 'c'
|