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

Function argv

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

Source from the content-addressed store, hash-verified

305
306 #[pyattr]
307 fn argv(vm: &VirtualMachine) -> Vec<PyObjectRef> {
308 vm.state
309 .config
310 .settings
311 .argv
312 .iter()
313 .map(|arg| vm.ctx.new_str(arg.clone()).into())
314 .collect()
315 }
316
317 #[pyattr]
318 fn builtin_module_names(vm: &VirtualMachine) -> PyTupleRef {

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