(self, as_type=bytes)
Retrieve all characters on this page, as tuple of tuples of bytes (raw) or unicode (dbcs).
Retrieve all characters on this page, as tuple of tuples of bytes (raw) or unicode (dbcs).
Retrieve all characters on this page as tuple of tuples of bytes ( raw ) or unicode ( dbcs ) .
def get_chars(self, as_type=bytes):
        """Retrieve all characters on this page, as tuple of tuples of bytes (raw) or unicode (dbcs)."""
        if as_type == bytes:
            return tuple(tuple(_row.chars) for _row in self._rows)
        elif as_type == text_type:
            return tuple(tuple(_row) for _row in self._dbcs_text)
        else:
            raise ValueError('`as_type` must be bytes or unicode, not %s.' % type(as_type))
def get_chars ( self , as_type = bytes ) : if as_type == bytes : return tuple ( tuple ( _row . chars ) for _row in self . _rows ) elif as_type == text_type : return tuple ( tuple ( _row ) for _row in self . _dbcs_text ) else : raise ValueError ( '`as_type` must be bytes or unicode, not %s.' % type ( as_type ) )