class A(object):

    def __new__(cls):
        return 42


class B(A, metaclass=abc.ABCMeta):
    pass

@abc.abstractmethod
def foo(self):
    pass
Can python abstract base classes inherit from C extensions?