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

Method init

crates/stdlib/src/random.rs:34–36  ·  view source on GitHub ↗
(zelf: PyRef<Self>, x: Self::Args, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

32 type Args = OptionalOption;
33
34 fn init(zelf: PyRef<Self>, x: Self::Args, vm: &VirtualMachine) -> PyResult<()> {
35 zelf.seed(x, vm)
36 }
37 }
38
39 #[pyclass(flags(BASETYPE), with(Constructor, Initializer))]

Callers

nothing calls this directly

Calls 1

seedMethod · 0.45

Tested by

no test coverage detected