Skip to content

Instantly share code, notes, and snippets.

@Stevoisiak
Last active June 20, 2018 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Stevoisiak/26518972244b705276266b169f023efa to your computer and use it in GitHub Desktop.
Save Stevoisiak/26518972244b705276266b169f023efa to your computer and use it in GitHub Desktop.
# Base Classes
class BaseAdapter(object):
def __init__(self):
super(BaseAdapter, self).__init__()
class BaseAdapter2(object):
pass
class Second:
def __init__(self):
print("second")
super().__init__()
# Test classes
class Other1(BaseAdapter, Second):
def __init__(self):
print("other1 init")
super().__init__()
class Other2(BaseAdapter2, Second):
def __init__(self):
print("other2 init")
super().__init__()
Other1()
Other2()
other1 init
second
other2 init
second
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment