On Tue, Aug 24, 2021 at 10:12 PM Guido van Rossum <[email protected]> wrote:

> “Container” is a kind of pun, it’s something with a __contains__ method.
> The thing you’re looking for is “Collection”.
>

Hmm, perhaps we should tweak the docs, the section is titled:

"Abstract Base Classes for Containers"

But yes, Collection is what I (and probably the OP) was looking for, in
which case, all Collections support len(), so the way to explicitly check
if they are empty is len(). Nothing to be done here.

I also note that the discussion seems quite stuck.
>

indeed. I'm done :-)

-CHB


--
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
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/4I2FYIUUXTZXSWLWCHDZDCBVCSN4LSZP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to