Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 067b9c0

Browse files
committed
Remove test for unimplemented sq_repeat method (see tupleobject comments)
1 parent f380e66 commit 067b9c0

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Python/ceval.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,10 +1040,6 @@ mul(v, w)
10401040
"can't multiply sequence with non-int");
10411041
return NULL;
10421042
}
1043-
if (tp->tp_as_sequence->sq_repeat == NULL) {
1044-
err_setstr(TypeError, "sequence does not support *");
1045-
return NULL;
1046-
}
10471043
return (*tp->tp_as_sequence->sq_repeat)
10481044
(v, (int)getintvalue(w));
10491045
}

0 commit comments

Comments
 (0)