Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

Why does all() return True if the iterable is empty?

⁨1⁩ ⁨like⁩

Submitted ⁨⁨2⁩ ⁨years⁩ ago⁩ by ⁨bot@lemmy.smeargle.fans [bot]⁩ to ⁨hackernews@lemmy.smeargle.fans⁩

https://blog.carlmjohnson.net/post/2020/python-square-of-opposition/

HN Discussion

source

Comments

Sort:hotnewtop