MCPcopy Index your code
hub / github.com/python/mypy / process_iterator_tuple_assignment_helper

Method process_iterator_tuple_assignment_helper

mypyc/irbuild/builder.py:911–924  ·  view source on GitHub ↗
(
        self, litem: AssignmentTarget, ritem: Value, line: int
    )

Source from the content-addressed store, hash-verified

909 self.assign(lvalue, value, line)
910
911 def process_iterator_tuple_assignment_helper(
912 self, litem: AssignmentTarget, ritem: Value, line: int
913 ) -> None:
914 error_block, ok_block = BasicBlock(), BasicBlock()
915 self.add(Branch(ritem, error_block, ok_block, Branch.IS_ERROR))
916
917 self.activate_block(error_block)
918 self.add(
919 RaiseStandardError(RaiseStandardError.VALUE_ERROR, "not enough values to unpack", line)
920 )
921 self.add(Unreachable())
922
923 self.activate_block(ok_block)
924 self.assign(litem, ritem, line)
925
926 def process_iterator_tuple_assignment(
927 self, target: AssignmentTargetTuple, rvalue_reg: Value, line: int

Callers

nothing calls this directly

Calls 7

addMethod · 0.95
activate_blockMethod · 0.95
assignMethod · 0.95
BasicBlockClass · 0.90
BranchClass · 0.90
RaiseStandardErrorClass · 0.90
UnreachableClass · 0.90

Tested by

no test coverage detected