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

Function count_placeholders

crates/vm/src/stdlib/_functools.rs:122–124  ·  view source on GitHub ↗
(args: &[PyObjectRef])

Source from the content-addressed store, hash-verified

120 }
121
122 fn count_placeholders(args: &[PyObjectRef]) -> usize {
123 args.iter().filter(|a| is_placeholder(a)).count()
124 }
125
126 #[pyattr]
127 #[pyclass(name = "partial", module = "functools")]

Callers 2

__setstate__Method · 0.85
py_newMethod · 0.85

Calls 4

is_placeholderFunction · 0.85
countMethod · 0.45
filterMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected