On Tue, Aug 24, 2021 at 10:12 PM Guido van Rossum <guido@python.org> 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