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

Function warnoptions

crates/vm/src/stdlib/sys.rs:754–762  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

752
753 #[pyattr]
754 fn warnoptions(vm: &VirtualMachine) -> Vec<PyObjectRef> {
755 vm.state
756 .config
757 .settings
758 .warnoptions
759 .iter()
760 .map(|s| vm.ctx.new_str(s.clone()).into())
761 .collect()
762 }
763
764 #[cfg(feature = "rustpython-compiler")]
765 #[pyfunction]

Callers

nothing calls this directly

Calls 5

collectMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45
new_strMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected