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

Function all

crates/vm/src/stdlib/builtins.rs:47–54  ·  view source on GitHub ↗
(iterable: ArgIterable<ArgIntoBool>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

45
46 #[pyfunction]
47 fn all(iterable: ArgIterable<ArgIntoBool>, vm: &VirtualMachine) -> PyResult<bool> {
48 for item in iterable.iter(vm)? {
49 if !item?.into_bool() {
50 return Ok(false);
51 }
52 }
53 Ok(true)
54 }
55
56 #[pyfunction]
57 fn any(iterable: ArgIterable<ArgIntoBool>, vm: &VirtualMachine) -> PyResult<bool> {

Callers 15

_is_valid_dispatch_typeFunction · 0.85
create_archiveFunction · 0.85
_parse_hh_mm_ss_ffFunction · 0.85
_parse_isoformat_timeFunction · 0.85
is_privateMethod · 0.85
is_privateMethod · 0.85
is_privateMethod · 0.85
_check_valueMethod · 0.85
_generic_class_getitemFunction · 0.85
_parse_macFunction · 0.85
_try_finishMethod · 0.85

Calls 2

into_boolMethod · 0.80
iterMethod · 0.45

Tested by 15

test_token_hexMethod · 0.68
test_token_urlsafeMethod · 0.68
test_copyMethod · 0.68
fMethod · 0.68
test_allMethod · 0.68
f_allMethod · 0.68
__init__Method · 0.68
test_shift_data_exactMethod · 0.68
test_specific_casesMethod · 0.68
test_quantilesMethod · 0.68
naive_dict_checkMethod · 0.68