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

Method __getstate__

crates/vm/src/builtins/object.rs:303–306  ·  view source on GitHub ↗
(vm: &VirtualMachine, args: FuncArgs)

Source from the content-addressed store, hash-verified

301impl PyBaseObject {
302 #[pymethod(raw)]
303 fn __getstate__(vm: &VirtualMachine, args: FuncArgs) -> PyResult {
304 let (zelf,): (PyObjectRef,) = args.bind(vm)?;
305 object_getstate_default(&zelf, false, vm)
306 }
307
308 #[pyslot]
309 fn slot_richcompare(

Callers

nothing calls this directly

Calls 2

object_getstate_defaultFunction · 0.85
bindMethod · 0.45

Tested by

no test coverage detected