Skip to content

Commit 9893a9f

Browse files
committed
string.__add__ is not commutative
1 parent 2f8f138 commit 9893a9f

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/str

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/str/StringBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ boolean operator(String self, String other) {
340340
}
341341
}
342342

343-
@Builtin(name = __RADD__, minNumOfPositionalArgs = 2)
343+
@Builtin(name = __RADD__, minNumOfPositionalArgs = 2, reverseOperation = true)
344344
@Builtin(name = __ADD__, minNumOfPositionalArgs = 2)
345345
@GenerateNodeFactory
346346
public abstract static class AddNode extends PythonBinaryBuiltinNode {

0 commit comments

Comments
 (0)