def put_tuple_w(self, typecode, lst_w): self.start(typecode) lng = len(lst_w) self.put_int(lng) idx = 0 while idx < lng: w_obj = lst_w[idx] marshal(self.space, w_obj, self) idx += 1
def put_tuple_w(self, typecode, lst_w, single_byte_size=False): self.start(typecode) lng = len(lst_w) if single_byte_size: self.put(chr(lng)) else: self.put_int(lng) idx = 0 while idx < lng: w_obj = lst_w[idx] marshal(self.space, w_obj, self) idx += 1
def put_w_obj(self, w_obj): marshal(self.space, w_obj, self)