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

Function external_getitem

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__getitem__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…