Skip to content

Instantly share code, notes, and snippets.

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