How to get the parents classes of a class in Python?
class A(object): pass class B(object): pass class C(A, B): pass print(C.__bases__)
Sample output of above program.
(< class '__main__.A' >, < class '__main__.B' >)
2019-07-11T23:36:43+05:30
2019-07-11T23:36:43+05:30
Amit Arora
Amit Arora
Python Programming Tutorial
Python
Practical Solution