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

Function getitem_wrapper

crates/vm/src/types/slot.rs:386–388  ·  view source on GitHub ↗
(obj: &PyObject, needle: K, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

384 };
385}
386fn getitem_wrapper<K: ToPyObject>(obj: &PyObject, needle: K, vm: &VirtualMachine) -> PyResult {
387 vm.call_special_method(obj, identifier!(vm, __getitem__), (needle,))
388}
389
390fn setitem_wrapper<K: ToPyObject>(
391 obj: &PyObject,

Callers 2

mapping_getitem_wrapperFunction · 0.85
sequence_getitem_wrapperFunction · 0.85

Calls 1

call_special_methodMethod · 0.80

Tested by

no test coverage detected