MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / _getname

Method _getname

_pydevd_bundle/pydevd_bytecode_utils.py:123–128  ·  view source on GitHub ↗
(self, instr)

Source from the content-addressed store, hash-verified

121 return "Stack:\nFunction calls:\n%s\nLoad attrs:\n%s\n" % (self.function_calls, list(self.load_attrs.values()))
122
123 def _getname(self, instr):
124 if instr.opcode in _opcode.hascompare:
125 cmp_op = dis.cmp_op[instr.arg]
126 if cmp_op not in ("exception match", "BAD"):
127 return _COMP_OP_MAP.get(cmp_op, cmp_op)
128 return instr.arg
129
130 def _getcallname(self, instr):
131 if instr.name == "BINARY_SUBSCR":

Callers 4

_getcallnameMethod · 0.95
on_LOAD_ATTRMethod · 0.95
on_COMPARE_OPMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected