def first_child_not_matching_class(self, childclass, start=0,
                                       end=sys.maxint):
        if not isinstance(childclass, tuple):
            childclass = (childclass,)
        for index in range(start, min(len(self), end)):
            for c in childclass:
                if isinstance(self.children[index], c):
                    break
            else:
                return index
        return None
Return the index of the first child whose class does *not* match.
dataset/ETHPy150Open adieu/allbuttonspressed/docutils/nodes.py/Element.first_child_not_matching_class