Hacker News new | ask | show | jobs
by globular-toast 2286 days ago
This was definitely not accidental. Here is the commit that introduces `all` and `any`: 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.

1 comments

Or - and bear with me for this - they wanted to make sure that future changes stay compatible since clients might rely on this behaviour.