hm.bonks["nothing"] = [] hm.bonks["something"] = [ Bonk(**{"type": 1, "message": "Wait."}), Bonk(**{"type": 2, "message": "What?"}), ] hm.bonks["poe"] = [ Bonk(**{"type": 3, "message": "quoth"}), Bonk(**{"type": 4, "message": "the raven"}), Bonk(**{"type": 5, "message": "nevermore"}), ] rs = RandomStuff() rs.a = 1 rs.b = 2 rs.c = 3 rs.myintlist = list(range(20)) rs.maps = {1: Wrapper(**{"foo": Empty()}), 2: Wrapper(**{"foo": Empty()})} rs.bigint = 124523452435 rs.triple = 3.14 # make sure this splits two buffers in a buffered protocol rshuge = RandomStuff() rshuge.myintlist = list(range(10000)) my_zero = Srv.Janky_result(**{"success": 5}) class Test(object): def __init__(self, fast, slow): self._fast = fast self._slow = slow
hm.bonks["nothing"] = [] hm.bonks["something"] = [ Bonk(**{"type": 1, "message": "Wait."}), Bonk(**{"type": 2, "message": "What?"}), ] hm.bonks["poe"] = [ Bonk(**{"type": 3, "message": "quoth"}), Bonk(**{"type": 4, "message": "the raven"}), Bonk(**{"type": 5, "message": "nevermore"}), ] rs = RandomStuff() rs.a = 1 rs.b = 2 rs.c = 3 rs.myintlist = range(20) rs.maps = {1: Wrapper(**{"foo": Empty()}), 2: Wrapper(**{"foo": Empty()})} rs.bigint = 124523452435 rs.triple = 3.14 # make sure this splits two buffers in a buffered protocol rshuge = RandomStuff() rshuge.myintlist = range(10000) my_zero = Srv.Janky_result(**{"success": 5}) def check_write(o): trans_fast = TTransport.TMemoryBuffer() trans_slow = TTransport.TMemoryBuffer() prot_fast = TBinaryProtocol.TBinaryProtocolAccelerated(trans_fast)