def _binop_handler(nodetype):
    """
    Factory function for binary operator handlers.
    """
    def _handler(toplevel, stack_builders):
        right = make_expr(stack_builders)
        left = make_expr(stack_builders)
        return ast.BinOp(left=left, op=nodetype(), right=right)
    return _handler
def _binop_handler ( nodetype ) : def _handler ( toplevel , stack_builders ) : right = make_expr ( stack_builders ) left = make_expr ( stack_builders ) return ast . BinOp ( left = left , op = nodetype ( ) , right = right ) return _handler
Factory function for binary operator handlers.