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 -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/2GT6LQO5E4N3YNNQCHFENOGFVAWUSGFQ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to