Skip to content

Instantly share code, notes, and snippets.

@uptown
Created May 31, 2013 07:00
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 uptown/5683332 to your computer and use it in GitHub Desktop.
Save uptown/5683332 to your computer and use it in GitHub Desktop.
class A(object):
def method1(self):
print "method1"
def __method1(self):
print "__method1"
class B(A):
def method1(self):
self.__method1()
class C(B,A):
pass
C().method1()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment