Commit 5297e74b authored by Stefan Behnel's avatar Stefan Behnel

allow setting more node attributes in ExprNodes.binop_node()

parent 57a5fdbc
......@@ -11049,14 +11049,18 @@ binop_node_classes = {
"**": PowNode,
}
def binop_node(pos, operator, operand1, operand2, inplace=False):
def binop_node(pos, operator, operand1, operand2, inplace=False, **kwargs):
# Construct binop node of appropriate class for
# given operator.
return binop_node_classes[operator](pos,
operator = operator,
operand1 = operand1,
operand2 = operand2,
inplace = inplace)
return binop_node_classes[operator](
pos,
operator=operator,
operand1=operand1,
operand2=operand2,
inplace=inplace,
**kwargs)
#-------------------------------------------------------------------
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment