Skip to content

Instantly share code, notes, and snippets.

@whimboo
Created November 9, 2016 11:38
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 whimboo/d94eb7c42e0b4e2940c64e4e81f7909c to your computer and use it in GitHub Desktop.
Save whimboo/d94eb7c42e0b4e2940c64e4e81f7909c to your computer and use it in GitHub Desktop.
class Process(object):
def __init__(self, group=None, target=None, name=None, *args, **kwargs):
print 'Process __init__'
print '* args: {}'.format(args)
print '* kwargs: {}'.format(kwargs)
class BlockingChannel(object):
def __init__(self, channel, *args, **kwargs):
super(BlockingChannel, self).__init__(*args, **kwargs)
print 'BlockingChannel __init__'
print '* channel: %s' % channel
print '* args: {}'.format(args)
print '* kwargs: {}'.format(kwargs)
class ServerProxy(BlockingChannel, Process):
def __init__(self, func, *args, **kwargs):
super(ServerProxy, self).__init__(*args, **kwargs)
print 'ServerProxy __init__'
print '* func: {}'.format(func)
print '* args: {}'.format(args)
print '* kwargs: {}'.format(kwargs)
print ServerProxy.__mro__
inst = ServerProxy('func()', 'blocking')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment