def foo(self, one, two=None): if not one: yield "Nope", None encargs = [('one', mangle(one),), ('two', mangle(two),)] encresref = future() yield encargs, encresref yield unmangle(encresref.value)
def bar(self, b, a): encresref = peer.future() yield [( 'b', mangle(b), ), ( 'a', mangle(a), )], encresref yield unmangle(encresref.value)
def foo(self, one, two=None): if not one: yield "Nope", None encargs = [( 'one', mangle(one), ), ( 'two', mangle(two), )] encresref = peer.future() yield encargs, encresref yield unmangle(encresref.value)
def bar(self, b, a): encresref = future() yield [('b', mangle(b),), ('a', mangle(a),)], encresref yield unmangle(encresref.value)