I believe `isinstance(x, Sized)` is little more than `hasattr(x, '__len__')`.