

def blob(self):
    self.number = len(self.assoc)
    self.data = bytearray([(self.number & 255), (self.number >> 8)])
    for (k, v) in self.assoc.items():
        self.data.extend([(k >> 8), (k & 255)])
        self.data.extend(v.encode('utf-8'))
        self.data.append(0)
    self.length = len(self.data)
    return super().blob()

dataset/ETHPy150Open tailhook/pyzza/pyzza/tags.py SymbolClass.blob/original