def __iter__(self):
        """
        An iterator that yields a tuple of (thrift object, hole), where
        hole is a tuple of (start, skipped) bytes.
        """
        idx = self._padding
        while idx < len(self._data):
            tobject, hole = self._read_next(idx, len(self._data))
            if tobject is None:
                return
            if hole:
                idx += hole[1]  # number of bytes skipped
            idx += tobject.bytes_length + self._padding
            yield tobject, hole
def __iter__ ( self ) : idx = self . _padding while idx < len ( self . _data ) : tobject , hole = self . _read_next ( idx , len ( self . _data ) ) if tobject is None : return if hole : idx += hole [ 1 ] idx += tobject . bytes_length + self . _padding yield tobject , hole
An iterator that yields a tuple of (thrift object, hole), where
        hole is a tuple of (start, skipped) bytes.