Skip to content

Commit 63ffbf9

Browse files
committed
Correcting guards for creating new tuple.
1 parent 05b94d1 commit 63ffbf9

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/builtins/TupleNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public PTuple tuple(@SuppressWarnings("unused") PythonClass cls, PTuple iterable
102102
return iterable;
103103
}
104104

105-
@Specialization(guards = {"createNewTuple(cls, iterable)"})
105+
@Specialization(guards = {"!isNoValue(iterable)", "createNewTuple(cls, iterable)"})
106106
public PTuple tuple(PythonClass cls, Object iterable,
107107
@Cached("create()") GetIteratorNode getIterator,
108108
@Cached("create()") GetNextNode next,

0 commit comments

Comments
 (0)