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

Method get

crates/vm/src/dict_inner.rs:335–338  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine, key: &K)

Source from the content-addressed store, hash-verified

333 /// Retrieve a key
334 #[cfg_attr(feature = "flame-it", flame("Dict"))]
335 pub fn get<K: DictKey + ?Sized>(&self, vm: &VirtualMachine, key: &K) -> PyResult<Option<T>> {
336 let hash = key.key_hash(vm)?;
337 self._get_inner(vm, key, hash)
338 }
339
340 /// Return a stable entry hint for `key` if present.
341 ///

Callers 9

get_entry_checkedMethod · 0.45
insertMethod · 0.45
get_hintMethod · 0.45
delete_or_insertMethod · 0.45
setdefaultMethod · 0.45
setdefault_entryMethod · 0.45
next_entryMethod · 0.45
prev_entryMethod · 0.45
test_insertFunction · 0.45

Calls 2

key_hashMethod · 0.80
_get_innerMethod · 0.80

Tested by 1

test_insertFunction · 0.36