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

Method _has_load_super_attr

Lib/test/test_monitoring.py:1882–1889  ·  view source on GitHub ↗
(self, co)

Source from the content-addressed store, hash-verified

1880 return self._exec(co)
1881
1882 def _has_load_super_attr(self, co):
1883 has = any(instr.opname == "LOAD_SUPER_ATTR" for instr in dis.get_instructions(co))
1884 if not has:
1885 has = any(
1886 isinstance(c, types.CodeType) and self._has_load_super_attr(c)
1887 for c in co.co_consts
1888 )
1889 return has
1890
1891 def _super_method_call(self, optimized=False):
1892 codestr = """

Callers 2

_exec_superMethod · 0.95

Calls 2

get_instructionsMethod · 0.80
anyFunction · 0.50

Tested by

no test coverage detected