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/builtins.rs:42–44 ·
view source on GitHub ↗
(x: PyObjectRef, vm: &VirtualMachine)
Source
from the content-addressed store, hash-verified
40
41
#[pyfunction]
42
fn abs(x: PyObjectRef, vm: &VirtualMachine) -> PyResult {
43
vm._abs(&x)
44
}
45
46
#[pyfunction]
47
fn all(iterable: ArgIterable<ArgIntoBool>, vm: &VirtualMachine) -> PyResult<bool> {
Callers
nothing calls this directly
Calls
1
_abs
Method · 0.80
Tested by
no test coverage detected