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

Function is_builtin

crates/vm/src/stdlib/_imp.rs:190–192  ·  view source on GitHub ↗
(name: PyUtf8StrRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

188
189 #[pyfunction]
190 fn is_builtin(name: PyUtf8StrRef, vm: &VirtualMachine) -> bool {
191 vm.state.module_defs.contains_key(name.as_str())
192 }
193
194 #[pyfunction]
195 fn is_frozen(name: PyUtf8StrRef, vm: &VirtualMachine) -> bool {

Callers

nothing calls this directly

Calls 2

contains_keyMethod · 0.80
as_strMethod · 0.45

Tested by

no test coverage detected