Skip to content

Commit 9408400

Browse files
Remove unnecessary assert
1 parent b6c8727 commit 9408400

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Objects/tupleobject.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ tuple_alloc_2(void)
207207
{
208208
Py_ssize_t size = 2;
209209
Py_ssize_t index = size - 1;
210-
assert(index < PyTuple_MAXSAVESIZE);
211210
PyTupleObject *result = _Py_FREELIST_POP(PyTupleObject, tuples[index]);
212211
if (result == NULL) {
213212
result = PyObject_GC_NewVar(PyTupleObject, &PyTuple_Type, size);

0 commit comments

Comments
 (0)