Skip to content

Instantly share code, notes, and snippets.

@ricomoss
Created May 22, 2015 15:05
Show Gist options
  • Save ricomoss/76ff3d04cf5f72652942 to your computer and use it in GitHub Desktop.
Save ricomoss/76ff3d04cf5f72652942 to your computer and use it in GitHub Desktop.
class Mixin1(Base1):
def get_data(self):
# Gather some data in some way
class Mixin2(Base2):
def get_data(self):
# Gather some data in another way
class MyClass(Mixin1, Mixin2):
def get_data(self):
# Gather some data in yet another way. Then...
# Get Mixin2's version of get_data. Then...
# Get Mixin1's version of get_data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment