@classmethod
def ancestors(cls):
    """Returns a list of parent classes in child-to-parent order."""
    retval = []
    extends = cls.__extends__
    while extends is not None:
        retval.append(extends)
        extends = extends.__extends__
    return retval
