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

Method keys

crates/vm/src/protocol/mapping.rs:166–172  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

164 }
165
166 pub fn keys(self, vm: &VirtualMachine) -> PyResult {
167 if let Some(dict) = self.obj.downcast_ref_if_exact::<PyDict>(vm) {
168 PyDictKeys::new(dict.to_owned()).to_pyresult(vm)
169 } else {
170 self.method_output_as_list(identifier!(vm, keys), vm)
171 }
172 }
173
174 pub fn values(self, vm: &VirtualMachine) -> PyResult {
175 if let Some(dict) = self.obj.downcast_ref_if_exact::<PyDict>(vm) {

Callers 11

__replace__Method · 0.45
check_kwargs_emptyMethod · 0.45
builtin_module_namesFunction · 0.45
_frozen_module_namesFunction · 0.45
identifiersMethod · 0.45
getenvironmentFunction · 0.45
py_newMethod · 0.45
py_newMethod · 0.45
slot_newMethod · 0.45
start_joinable_threadFunction · 0.45
init_thread_countdownMethod · 0.45

Calls 4

newFunction · 0.85
method_output_as_listMethod · 0.80
to_pyresultMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected