(self)
return b''.join(bytes(bytearray(_row)) for _row in self._rows)
Convert to a bytes object (contiguous rows).
Convert to a bytes object (contiguous rows).
Convert to a bytes object ( contiguous rows ) .
def to_bytes(self):
        """Convert to a bytes object (contiguous rows)."""
        # we need the bytearray cast - only in case we're a view
        return b''.join(bytes(bytearray(_row)) for _row in self._rows)
def to_bytes ( self ) : # we need the bytearray cast - only in case we're a view return b'' . join ( bytes ( bytearray ( _row ) ) for _row in self . _rows )