Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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