(self, expr, attrs)
return True
Check if ``expr`` has any of ``attrs``.
Check if ``expr`` has any of ``attrs``.
Check if expr has any of attrs .
def _hasattrs(self, expr, attrs):
        """Check if ``expr`` has any of ``attrs``. """
        for attr in attrs:
            if not hasattr(expr, attr):
                return False

        return True
def _hasattrs ( self , expr , attrs ) : for attr in attrs : if not hasattr ( expr , attr ) : return False return True