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

Class CGetItem

extra_tests/snippets/builtin_list.py:633–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631
632# __getitem but no __iter__ sequence
633class CGetItem:
634 def __init__(self, sec=(1, 2, 3)):
635 self.sec = sec
636
637 def __getitem__(self, sub):
638 return self.sec[sub]
639
640
641x = list(range(10))

Callers 1

builtin_list.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected