MCPcopy Index your code
hub / github.com/python/cpython / update_name_and_target

Method update_name_and_target

Tools/jit/_optimizers.py:121–128  ·  view source on GitHub ↗
(self, name: str, target: str)

Source from the content-addressed store, hash-verified

119 )
120
121 def update_name_and_target(self, name: str, target: str) -> "Instruction":
122 assert self.target is not None
123 return Instruction(
124 self.kind,
125 name,
126 self.text.replace(self.name, name).replace(self.target, target),
127 target,
128 )
129
130
131@dataclasses.dataclass(eq=False)

Callers 1

_invert_branchMethod · 0.80

Calls 2

InstructionClass · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected