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 = { ...@@ -11049,14 +11049,18 @@ binop_node_classes = {
"**": PowNode, "**": 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 # Construct binop node of appropriate class for
# given operator. # given operator.
return binop_node_classes[operator](pos, return binop_node_classes[operator](
operator = operator, pos,
operand1 = operand1, operator=operator,
operand2 = operand2, operand1=operand1,
inplace = inplace) 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