Skip to content

Commit fb0276c

Browse files
committed
use times: object = NULL to indicate repeat(1, None) differs from repeat(1)
1 parent 7eb6fb8 commit fb0276c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Modules/itertoolsmodule.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3758,12 +3758,12 @@ typedef struct {
37583758
@classmethod
37593759
itertools.repeat.__new__ as repeat_new
37603760
object as element: object
3761-
times: object(c_default="NULL") = None
3761+
times: object = NULL
37623762
[clinic start generated code]*/
37633763

37643764
static PyObject *
37653765
repeat_new_impl(PyTypeObject *type, PyObject *element, PyObject *times)
3766-
/*[clinic end generated code: output=4ef9bd3593335622 input=c0eafe81f60ae9e6]*/
3766+
/*[clinic end generated code: output=4ef9bd3593335622 input=57cee9a4aba720da]*/
37673767
{
37683768
repeatobject *ro;
37693769
Py_ssize_t cnt = -1;

0 commit comments

Comments
 (0)