def _convert_value(value):
    try:
        return ast.literal_eval(value)
    except (ValueError, SyntaxError):
        # use as string if nothing else worked
        return value
Returns a new Constraint from the given string.
dataset/ETHPy150Open IDSIA/sacred/sacred/arg_parser.py/_convert_value--crossover with--dataset/ETHPy150Open clips/pattern/pattern/text/search.py/Constraint.fromstring