Skip to content

Commit 16c18f6

Browse files
committed
always return new list from PySequence_List
1 parent 824b292 commit 16c18f6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PythonCextBuiltins.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,11 +2733,6 @@ protected boolean isTuple(Object obj, GetClassNode getClassNode) {
27332733
@Builtin(name = "PySequence_List", minNumOfPositionalArgs = 1)
27342734
@GenerateNodeFactory
27352735
public abstract static class PySequenceListNode extends PythonUnaryBuiltinNode {
2736-
@Specialization
2737-
public PList values(PList obj) {
2738-
return obj;
2739-
}
2740-
27412736
@Specialization
27422737
public Object values(VirtualFrame frame, Object obj,
27432738
@Cached ConstructListNode listNode,

0 commit comments

Comments
 (0)