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

Method __getitem__

crates/vm/src/builtins/tuple.rs:429–431  ·  view source on GitHub ↗
(&self, needle: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

427 }
428
429 fn __getitem__(&self, needle: PyObjectRef, vm: &VirtualMachine) -> PyResult {
430 self._getitem(&needle, vm)
431 }
432
433 #[pymethod]
434 fn index(

Callers

nothing calls this directly

Calls 1

_getitemMethod · 0.45

Tested by

no test coverage detected