3 ms·
This was definitely not accidental. Here is the commit that introduces `all` and `any`: https://github.com/python/cpython/commit/96229b19181 https://github.com/
by globular-toast 7y ago
This was definitely not accidental. Here is the commit that introduces `all` and `any`: https://github.com/python/cpython/commit/96229b19181 https://github.com/python/cpython/commit/96229b19181
It includes a test for the empty case: `self.assertEqual(all([]), True)`. They knew what they were doing.
- qayxc 7y agoOr - and bear with me for this - they wanted to make sure that future changes stay compatible since clients might rely on this behaviour.