(evaluator, contextualized_name, context_set)
return context_set
Checks if tuples are assigned.
Checks if tuples are assigned.
Checks if tuples are assigned .
def check_tuple_assignments(evaluator, contextualized_name, context_set):
    """
    Checks if tuples are assigned.
    """
    lazy_context = None
    for index, node in contextualized_name.assignment_indexes():
        cn = ContextualizedNode(contextualized_name.context, node)
        iterated = context_set.iterate(cn)
        for _ in range(index + 1):
            try:
                lazy_context = next(iterated)
            except StopIteration:
                # We could do this with the default param in next. But this
                # would allow this loop to run for a very long time if the
                # index number is high. Therefore break if the loop is
                # finished.
                return ContextSet()
        context_set = lazy_context.infer()
    return context_set
def check_tuple_assignments ( evaluator , contextualized_name , context_set ) : lazy_context = None for index , node in contextualized_name . assignment_indexes ( ) : cn = ContextualizedNode ( contextualized_name . context , node ) iterated = context_set . iterate ( cn ) for _ in range ( index + 1 ) : try : lazy_context = next ( iterated ) except StopIteration : # We could do this with the default param in next. But this # would allow this loop to run for a very long time if the # index number is high. Therefore break if the loop is # finished. return ContextSet ( ) context_set = lazy_context . infer ( ) return context_set