22.08.21 16:27, Steven D'Aprano пише:
> Quoting the subject line:
>
> "We should have an explicit concept of emptiness for collections"
>
> We do. It's spelled:
>
> len(collection) == 0
>
> You can't get more explicit than that.
(len(collection) == 0) is True
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/2GT6LQO5E4N3YNNQCHFENOGFVAWUSGFQ/
Code of Conduct: http://python.org/psf/codeofconduct/