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

Method getstate

crates/vm/src/stdlib/_io.rs:2673–2675  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2671
2672 #[pymethod]
2673 fn getstate(&self, vm: &VirtualMachine) -> PyObjectRef {
2674 vm.ctx.new_int(0).into()
2675 }
2676
2677 #[pygetset]
2678 fn name(&self) -> Option<PyStrRef> {

Callers

nothing calls this directly

Calls 6

new_intMethod · 0.45
to_ownedMethod · 0.45
lockMethod · 0.45
is_noneMethod · 0.45
new_bytesMethod · 0.45
call_methodMethod · 0.45

Tested by

no test coverage detected