Join Nostr
2025-04-18 08:03:58 UTC
in reply to

chrysn on Nostr: nprofile1q…eqfh3 This is not specific to Python: it's the same in Rust and general ...

This is not specific to Python: it's the same in Rust and general mathematics. all(empty) is true and any(empty) is false.
This aligns well both with implementations (a la `for item in iterator: if item: return false` and eventually return true) and with the definition (there is not a single element in there that is false, so the result must be true).