This means that `some_corebag == object()` will generate an exception (I think). That's unusual for Python instances.

Consider using `if not isinstance(other, CoreBag): return False` instead?