MCPcopy Index your code
hub / github.com/RustPython/RustPython / _has_load_super_attr

Method _has_load_super_attr

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

Source from the content-addressed store, hash-verified

1888 return self._exec(co)
1889
1890 def _has_load_super_attr(self, co):
1891 has = any(instr.opname == "LOAD_SUPER_ATTR" for instr in dis.get_instructions(co))
1892 if not has:
1893 has = any(
1894 isinstance(c, types.CodeType) and self._has_load_super_attr(c)
1895 for c in co.co_consts
1896 )
1897 return has
1898
1899 def _super_method_call(self, optimized=False):
1900 codestr = """

Callers 2

_exec_superMethod · 0.95

Calls 3

isinstanceFunction · 0.85
get_instructionsMethod · 0.80
anyFunction · 0.50

Tested by

no test coverage detected