Skip to content

Commit 2343e3c

Browse files
committed
fix numer of args in BytesBuiltins.IterNode
1 parent 21967c7 commit 2343e3c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/bytes/BytesBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ boolean contains(@SuppressWarnings("unused") PBytes self, Object other) {
254254

255255
@Builtin(name = __ITER__, fixedNumOfArguments = 1)
256256
@GenerateNodeFactory
257-
abstract static class IterNode extends PythonBinaryBuiltinNode {
257+
abstract static class IterNode extends PythonUnaryBuiltinNode {
258258
@Specialization
259259
PSequenceIterator contains(PBytes self) {
260260
return factory().createSequenceIterator(self);

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/function/BuiltinFunctionRootNode.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,16 +208,16 @@ public Object execute(VirtualFrame frame) {
208208
} else {
209209
PythonBuiltinBaseNode node = factory.createNode();
210210
if (node instanceof PythonUnaryBuiltinNode) {
211-
assert argumentsList.length == 1 : "mismatch in number of arguments for " + node.getClass().getSimpleName();
211+
assert argumentsList.length == 1 : "mismatch in number of arguments for " + node.getClass().getName();
212212
body = insert(new BuiltinUnaryCallNode((PythonUnaryBuiltinNode) node, argumentsList[0]));
213213
} else if (node instanceof PythonBinaryBuiltinNode) {
214-
assert argumentsList.length == 2 : "mismatch in number of arguments for " + node.getClass().getSimpleName();
214+
assert argumentsList.length == 2 : "mismatch in number of arguments for " + node.getClass().getName();
215215
body = insert(new BuiltinBinaryCallNode((PythonBinaryBuiltinNode) node, argumentsList[0], argumentsList[1]));
216216
} else if (node instanceof PythonTernaryBuiltinNode) {
217-
assert argumentsList.length == 3 : "mismatch in number of arguments for " + node.getClass().getSimpleName();
217+
assert argumentsList.length == 3 : "mismatch in number of arguments for " + node.getClass().getName();
218218
body = insert(new BuiltinTernaryCallNode((PythonTernaryBuiltinNode) node, argumentsList[0], argumentsList[1], argumentsList[2]));
219219
} else if (node instanceof PythonVarargsBuiltinNode) {
220-
assert argumentsList.length == 3 : "mismatch in number of arguments for " + node.getClass().getSimpleName();
220+
assert argumentsList.length == 3 : "mismatch in number of arguments for " + node.getClass().getName();
221221
assert argumentsList[0] != null && argumentsList[1] != null && argumentsList[2] != null;
222222
body = insert(new BuiltinVarArgsCallNode((PythonVarargsBuiltinNode) node, argumentsList[0], argumentsList[1], argumentsList[2]));
223223
} else {

0 commit comments

Comments
 (0)