def path_list_is_ancestor(ances_pl, des_pl):
    """
        from xdict.utils import *
        path_list_is_ancestor(['a','b'],['a','b'])
        path_list_is_ancestor(['a','b'],['a','b',''])
        path_list_is_ancestor(['a','b'],['a','b','c'])
        path_list_is_ancestor(['a','b'],['a','b','c','d'])
        path_list_is_ancestor(['a','b'],['a','b','c','d',''])
    """
    dl_len = des_pl.__len__()
    al_len = ances_pl.__len__()
    if dl_len > al_len:
        for i in range(0, al_len):
            if ances_pl[i] == des_pl[i]:
                pass
            else:
                return False
        return True
    else:
        return False
