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

Function external_getitem

Lib/test/test_code.py:250–251  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

248# Needed for test_closure_injection below
249# Defined at global scope to avoid implicitly closing over __class__
250def external_getitem(self, i):
251 return f"Foreign getitem: {super().__getitem__(i)}"
252
253
254class CodeTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__getitem__Method · 0.45

Tested by

no test coverage detected