def __init__ ( self , ba = None ) : self . bytearray = ba or ( bytearray ( b'\0' ) * self . SIZEOF )
python how to define an bytearray
Constructor .
def __init__(self, ba=None):
        """Constructor."""
        self.bytearray = ba or (bytearray(b'\0') * self.SIZEOF)