Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ abs
Function
abs
crates/vm/src/stdlib/_operator.rs:67–69 ·
view source on GitHub ↗
(a: PyObjectRef, vm: &VirtualMachine)
Source
from the content-addressed store, hash-verified
65
66
#[pyfunction]
67
fn abs(a: PyObjectRef, vm: &VirtualMachine) -> PyResult {
68
vm._abs(&a)
69
}
70
71
#[pyfunction]
72
fn add(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {
Callers
nothing calls this directly
Calls
1
_abs
Method · 0.80
Tested by
no test coverage detected