def _ispow(e):
 return (isinstance(e, Expr) and (e.is_Pow or (e.func is exp)))

def _ispow ( e ) : return ( isinstance ( e , Expr ) and ( e . is_Pow or ( e . func is exp ) ) )
return true if e is a pow or is exp .