def __init__(self, name, sign, length, endian='!'): Token.__init__(self) assert endian in '@ = < > !'.split() self.name = name self.sign = sign self.__length = length self.endian = endian
def __init__(self, seqtype): Token.__init__(self) self.seqtype = seqtype
def __init__(self): Token.__init__(self)