Skip to content

Commit 9fa7c19

Browse files
committed
if list has been collected, return nothing during collection
1 parent 89c87af commit 9fa7c19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextListBuiltins.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,5 +339,11 @@ static long doGeneric(PList self, Object outItems,
339339
}
340340
return 0;
341341
}
342+
343+
@SuppressWarnings("unused")
344+
@Specialization
345+
static long doGeneric(PNone none, Object ignore) {
346+
return 0;
347+
}
342348
}
343349
}

0 commit comments

Comments
 (0)