Skip to content

Instantly share code, notes, and snippets.

@haridsv
Created June 27, 2013 15:43
Show Gist options
  • Save haridsv/5877544 to your computer and use it in GitHub Desktop.
Save haridsv/5877544 to your computer and use it in GitHub Desktop.
class B(object):
@staticmethod
def identify():
return "B"
def iden(self):
return self.identify()
class D(B):
@staticmethod
def identify():
return "D"
assert B().iden() == "B"
assert D().iden() == "D"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment