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

Function max

crates/vm/src/stdlib/builtins.rs:886–888  ·  view source on GitHub ↗
(args: FuncArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

884
885 #[pyfunction]
886 fn max(args: FuncArgs, vm: &VirtualMachine) -> PyResult {
887 min_or_max(args, vm, "max", PyComparisonOp::Gt)
888 }
889
890 #[pyfunction]
891 fn min(args: FuncArgs, vm: &VirtualMachine) -> PyResult {

Callers 15

total_orderingFunction · 0.85
disFunction · 0.85
writeMethod · 0.85
selectMethod · 0.85
selectMethod · 0.85
formatmonthMethod · 0.85
formatyearMethod · 0.85
formatyearMethod · 0.85
formatmonthMethod · 0.85
formatyearMethod · 0.85
getframeinfoFunction · 0.85
repr_strMethod · 0.85

Calls 1

min_or_maxFunction · 0.85

Tested by 15

test_optionalSlicingMethod · 0.68
check_lnotabMethod · 0.68
make_bbMethod · 0.68
slice_indicesFunction · 0.68
test_objecttypesMethod · 0.68
strtodFunction · 0.68
fooMethod · 0.68
_find_tiMethod · 0.68
truedivFunction · 0.68
check_truedivMethod · 0.68
test_compact_widthMethod · 0.68