Skip to content

Instantly share code, notes, and snippets.

@jan-matejka
Created January 17, 2017 14:28
Show Gist options
  • Select an option

  • Save jan-matejka/0ad29af48d2ade842b82314a2ba3696f to your computer and use it in GitHub Desktop.

Select an option

Save jan-matejka/0ad29af48d2ade842b82314a2ba3696f to your computer and use it in GitHub Desktop.
class Sess:
def __init__(self, foo):
self.foo = foo
print("init Sess")
class Lock:
def __init__(self):
print("init Lock")
class AppC:
def __init__(self):
self.apps = dict()
print("init AppC")
class MemSess(Sess, Lock, AppC):
def __init__(self, *args, **kw):
super().__init__(*args, **kw)
print("init MemSess")
m = MemSess("bar")
print(m.apps)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment