def maybe_expression(s):
 if (not isinstance(s, string_types)):
  return False
 ops = ((ExprVisitor.binary_ops + ExprVisitor.unary_ops) + ('=',))
 return any(((op in s) for op in ops))

def maybe_expression ( s ) : if ( not isinstance ( s , string_types ) ) : return False ops = ( ( ExprVisitor . binary_ops + ExprVisitor . unary_ops ) + ( '=' , ) ) return any ( ( ( op in s ) for op in ops ) )
loose checking if s is a pytables-acceptable expression .