def p_named_args(p):
    """named_args :
                  | named_args named_arg COMMA
                  | named_args named_arg"""

    if len(p) > 2:
        p[1].update(p[2])
    p[0] = p[1] if 1 > len(p) else {}
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/csparser/parser.py/p_named_args/swapped operands of `>`