def p_comparison2(p):
    left = p[1]
    ops, comparators = zip(*p[2])
    cmpr = ast.Compare(left=left, ops=list(ops), comparators=list(comparators))
    p[0] = cmpr
comparison : expr comparison_list
dataset/ETHPy150Open nucleic/enaml/enaml/core/parser.py/p_comparison2