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

Function getgid

crates/vm/src/stdlib/posix.rs:1374–1377  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1372
1373 #[pyfunction]
1374 fn getgid(vm: &VirtualMachine) -> PyObjectRef {
1375 let gid = unistd::getgid().as_raw();
1376 vm.ctx.new_int(gid).into()
1377 }
1378
1379 #[pyfunction]
1380 fn getegid(vm: &VirtualMachine) -> PyObjectRef {

Callers

nothing calls this directly

Calls 2

as_rawMethod · 0.45
new_intMethod · 0.45

Tested by

no test coverage detected