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

Method __getstate__

crates/vm/src/stdlib/_io.rs:3824–3826  ·  view source on GitHub ↗
(zelf: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

3822
3823 #[pymethod]
3824 fn __getstate__(zelf: PyObjectRef, vm: &VirtualMachine) -> PyResult {
3825 Err(vm.new_type_error(format!("cannot pickle '{}' instances", zelf.class().name())))
3826 }
3827
3828 #[pymethod]
3829 fn __reduce_ex__(zelf: PyObjectRef, proto: usize, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 9

noneMethod · 0.80
ErrClass · 0.50
bufferMethod · 0.45
getvalueMethod · 0.45
tellMethod · 0.45
dictMethod · 0.45
as_objectMethod · 0.45
is_emptyMethod · 0.45
new_tupleMethod · 0.45

Tested by

no test coverage detected