Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_int
Method · 0.45
to_owned
Method · 0.45
lock
Method · 0.45
is_none
Method · 0.45
new_bytes
Method · 0.45
call_method
Method · 0.45
Tested by
no test coverage detected