#!/usr/local/bin/python3 from abc import abstractmethod from collections import Container, Iterable, Mapping, Sequence, Sized class Array(Sized, Iterable, Container): __slots__ = () @abstractmethod def __getitem__(self, key): raise KeyError class C(object): def __len__(self): pass print(issubclass(C, Array))