You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
166 B
13 lines
166 B
11 years ago
|
# Subclass from 2 bases explicitly subclasses from object
|
||
|
|
||
|
class Base1(object):
|
||
|
pass
|
||
|
|
||
|
class Base2(object):
|
||
|
pass
|
||
|
|
||
|
class Sub(Base1, Base2):
|
||
|
pass
|
||
|
|
||
|
o = Sub()
|