Skip to content

Instantly share code, notes, and snippets.

@lprsd
Created January 7, 2010 09:09
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 lprsd/271098 to your computer and use it in GitHub Desktop.
Save lprsd/271098 to your computer and use it in GitHub Desktop.
class A():
def __new__(cls,i):
class C(cls,B):
pass
print C
self = C()
print self
return self
def foo(self):
print 'foo'
class B():
def bar(self):
print 'bar'
a = A()
a.foo()
a.bar()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment