Created
November 9, 2016 11:38
-
-
Save whimboo/d94eb7c42e0b4e2940c64e4e81f7909c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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