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

Function globals

crates/vm/src/stdlib/builtins.rs:642–644  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

640
641 #[pyfunction]
642 fn globals(vm: &VirtualMachine) -> PyDictRef {
643 vm.current_globals()
644 }
645
646 #[pyfunction]
647 fn hasattr(obj: PyObjectRef, attr: PyObjectRef, vm: &VirtualMachine) -> PyResult<bool> {

Callers 15

pystone.pyFile · 0.85
symtable.pyFile · 0.85
_existsFunction · 0.85
os.pyFile · 0.85
locale.pyFile · 0.85
_init_categoriesFunction · 0.85
signal.pyFile · 0.85
hashlib.pyFile · 0.85
sre_compile.pyFile · 0.85
inspect.pyFile · 0.85
plistlib.pyFile · 0.85
_normalize_moduleFunction · 0.85

Calls 1

current_globalsMethod · 0.80