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

Function getitem

crates/vm/src/stdlib/_operator.rs:196–198  ·  view source on GitHub ↗
(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

194
195 #[pyfunction]
196 fn getitem(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {
197 a.get_item(&*b, vm)
198 }
199
200 #[pyfunction(name = "indexOf")]
201 fn index_of(a: PyIter, b: PyObjectRef, vm: &VirtualMachine) -> PyResult<usize> {

Callers

nothing calls this directly

Calls 1

get_itemMethod · 0.45

Tested by

no test coverage detected