python/ray/data/impl/block_list.py
def iter_blocks(self) -> Iterator[ObjectRef[Block]]:
        """Iterate over the blocks of this block list.

        This blocks on the execution of the tasks generating block outputs.
        The length of this iterator is not known until execution.
        """
        self._check_if_cleared()
        outer = self

        class Iter:
            def __init__(self):
                self._base_iter = outer.iter_blocks_with_metadata()

            def __iter__(self):
                return self

            def __next__(self):
                ref, meta = next(self._base_iter)
                assert isinstance(ref, ray.ObjectRef), (ref, meta)
                return ref

        return Iter()
Iterate over the blocks of this block list.

        This blocks on the execution of the tasks generating block outputs.
        The length of this iterator is not known until execution.
        
Iterate over the blocks of this block list.
This blocks on the execution of the tasks generating block outputs.
The length of this iterator is not known until execution.
Iterate over the blocks of this block list . This blocks on the execution of the tasks generating block outputs . The length of this iterator is not known until execution .
def iter_blocks(self) -> Iterator[ObjectRef[Block]]:
        self._check_if_cleared()
        outer = self
        class Iter:
            def __init__(self):
                self._base_iter = outer.iter_blocks_with_metadata()
            def __iter__(self):
                return self
            def __next__(self):
                ref, meta = next(self._base_iter)
                assert isinstance(ref, ray.ObjectRef), (ref, meta)
                return ref
        return Iter()
def iter_blocks ( self ) -> Iterator [ ObjectRef [ Block ] ] : self . _check_if_cleared ( ) outer = self class Iter : def __init__ ( self ) : self . _base_iter = outer . iter_blocks_with_metadata ( ) def __iter__ ( self ) : return self def __next__ ( self ) : ref , meta = next ( self . _base_iter ) assert isinstance ( ref , ray . ObjectRef ) , ( ref , meta ) return ref return Iter ( )
Iterate over the blocks of this block list.
Iterate over the blocks of this block list .
"""Iterate over the blocks of this block list.

        This blocks on the execution of the tasks generating block outputs.
        The length of this iterator is not known until execution.
        """
self