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

Method get_item

crates/vm/src/builtins/dict.rs:705–711  ·  view source on GitHub ↗
(&self, key: &K, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

703 }
704
705 pub fn get_item<K: DictKey + ?Sized>(&self, key: &K, vm: &VirtualMachine) -> PyResult {
706 if self.exact_dict(vm) {
707 self.inner_getitem(key, vm)
708 } else {
709 self.as_object().get_item(key, vm)
710 }
711 }
712
713 pub fn set_item<K: DictKey + ?Sized>(
714 &self,

Callers 15

get_future_repr_infoFunction · 0.45
current_taskFunction · 0.45
bisect_leftFunction · 0.45
bisect_rightFunction · 0.45
get_env_pathMethod · 0.45
format_internalFunction · 0.45
format_mapFunction · 0.45
add_noteMethod · 0.45
offer_suggestionsFunction · 0.45
import_builtinFunction · 0.45

Calls 3

exact_dictMethod · 0.80
inner_getitemMethod · 0.80
as_objectMethod · 0.45

Tested by

no test coverage detected