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

Method __getitem__

crates/vm/src/builtins/str.rs:634–636  ·  view source on GitHub ↗
(&self, needle: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

632 }
633
634 fn __getitem__(&self, needle: PyObjectRef, vm: &VirtualMachine) -> PyResult {
635 self._getitem(&needle, vm)
636 }
637
638 #[inline]
639 pub(crate) fn hash(&self, vm: &VirtualMachine) -> hash::PyHash {

Callers

nothing calls this directly

Calls 1

_getitemMethod · 0.45

Tested by

no test coverage detected