Advertisement
treyhunner

Untitled

May 4th, 2016
2,961
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PyCon 0.27 KB | None | 0 0
  1. >>> class A: pass
  2. ...
  3. >>> class B(A): pass
  4. ...
  5. >>> class C(A): pass
  6. ...
  7. >>> class D(B, C): pass
  8. ...
  9. >>> D.__bases__
  10. (<class '__main__.B'>, <class '__main__.C'>)
  11. >>> D.mro()
  12. [<class '__main__.D'>, <class '__main__.B'>, <class '__main__.C'>, <class '__main__.A'>, <class 'object'>]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement