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

Method is_branch

Tools/jit/_optimizers.py:112–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110 target: str | None
111
112 def is_branch(self) -> bool:
113 return self.kind in (InstructionKind.LONG_BRANCH, InstructionKind.SHORT_BRANCH)
114
115 def update_target(self, target: str) -> "Instruction":
116 assert self.target is not None

Callers 3

__post_init__Method · 0.80
_invert_branchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected