def is_list_of_ipachars ( obj ) : if isinstance ( obj , list ) : for e in obj : if not isinstance ( e , IPAChar ) : return False return True return False
python check if list object has attribute
Return True if the given object is a list of IPAChar objects .
def is_list_of_ipachars(obj):
    """
    Return ``True`` if the given object is a list of IPAChar objects.

    :param object obj: the object to test
    :rtype: bool
    """
    if isinstance(obj, list):
        for e in obj:
            if not isinstance(e, IPAChar):
                return False
        return True
    return False