Skip to content

Commit bfef18c

Browse files
committed
PyType_GenericAlloc is inherited from object.
1 parent c26ff41 commit bfef18c

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

Modules/_randommodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static PyTypeObject Random_Type = {
509509
0, /*tp_descr_set*/
510510
0, /*tp_dictoffset*/
511511
0, /*tp_init*/
512-
PyType_GenericAlloc, /*tp_alloc*/
512+
0, /*tp_alloc*/
513513
random_new, /*tp_new*/
514514
_PyObject_Del, /*tp_free*/
515515
0, /*tp_is_gc*/

Modules/itertoolsmodule.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ PyTypeObject cycle_type = {
151151
0, /* tp_descr_set */
152152
0, /* tp_dictoffset */
153153
0, /* tp_init */
154-
PyType_GenericAlloc, /* tp_alloc */
154+
0, /* tp_alloc */
155155
cycle_new, /* tp_new */
156156
PyObject_GC_Del, /* tp_free */
157157
};
@@ -300,7 +300,7 @@ PyTypeObject dropwhile_type = {
300300
0, /* tp_descr_set */
301301
0, /* tp_dictoffset */
302302
0, /* tp_init */
303-
PyType_GenericAlloc, /* tp_alloc */
303+
0, /* tp_alloc */
304304
dropwhile_new, /* tp_new */
305305
PyObject_GC_Del, /* tp_free */
306306
};
@@ -448,7 +448,7 @@ PyTypeObject takewhile_type = {
448448
0, /* tp_descr_set */
449449
0, /* tp_dictoffset */
450450
0, /* tp_init */
451-
PyType_GenericAlloc, /* tp_alloc */
451+
0, /* tp_alloc */
452452
takewhile_new, /* tp_new */
453453
PyObject_GC_Del, /* tp_free */
454454
};
@@ -638,7 +638,7 @@ PyTypeObject islice_type = {
638638
0, /* tp_descr_set */
639639
0, /* tp_dictoffset */
640640
0, /* tp_init */
641-
PyType_GenericAlloc, /* tp_alloc */
641+
0, /* tp_alloc */
642642
islice_new, /* tp_new */
643643
PyObject_GC_Del, /* tp_free */
644644
};
@@ -777,7 +777,7 @@ PyTypeObject starmap_type = {
777777
0, /* tp_descr_set */
778778
0, /* tp_dictoffset */
779779
0, /* tp_init */
780-
PyType_GenericAlloc, /* tp_alloc */
780+
0, /* tp_alloc */
781781
starmap_new, /* tp_new */
782782
PyObject_GC_Del, /* tp_free */
783783
};
@@ -964,7 +964,7 @@ PyTypeObject imap_type = {
964964
0, /* tp_descr_set */
965965
0, /* tp_dictoffset */
966966
0, /* tp_init */
967-
PyType_GenericAlloc, /* tp_alloc */
967+
0, /* tp_alloc */
968968
imap_new, /* tp_new */
969969
PyObject_GC_Del, /* tp_free */
970970
};
@@ -1099,7 +1099,7 @@ PyTypeObject chain_type = {
10991099
0, /* tp_descr_set */
11001100
0, /* tp_dictoffset */
11011101
0, /* tp_init */
1102-
PyType_GenericAlloc, /* tp_alloc */
1102+
0, /* tp_alloc */
11031103
chain_new, /* tp_new */
11041104
PyObject_GC_Del, /* tp_free */
11051105
};
@@ -1248,7 +1248,7 @@ PyTypeObject ifilter_type = {
12481248
0, /* tp_descr_set */
12491249
0, /* tp_dictoffset */
12501250
0, /* tp_init */
1251-
PyType_GenericAlloc, /* tp_alloc */
1251+
0, /* tp_alloc */
12521252
ifilter_new, /* tp_new */
12531253
PyObject_GC_Del, /* tp_free */
12541254
};
@@ -1397,7 +1397,7 @@ PyTypeObject ifilterfalse_type = {
13971397
0, /* tp_descr_set */
13981398
0, /* tp_dictoffset */
13991399
0, /* tp_init */
1400-
PyType_GenericAlloc, /* tp_alloc */
1400+
0, /* tp_alloc */
14011401
ifilterfalse_new, /* tp_new */
14021402
PyObject_GC_Del, /* tp_free */
14031403
};
@@ -1481,7 +1481,7 @@ PyTypeObject count_type = {
14811481
0, /* tp_descr_set */
14821482
0, /* tp_dictoffset */
14831483
0, /* tp_init */
1484-
PyType_GenericAlloc, /* tp_alloc */
1484+
0, /* tp_alloc */
14851485
count_new, /* tp_new */
14861486
};
14871487

@@ -1665,7 +1665,7 @@ PyTypeObject izip_type = {
16651665
0, /* tp_descr_set */
16661666
0, /* tp_dictoffset */
16671667
0, /* tp_init */
1668-
PyType_GenericAlloc, /* tp_alloc */
1668+
0, /* tp_alloc */
16691669
izip_new, /* tp_new */
16701670
PyObject_GC_Del, /* tp_free */
16711671
};
@@ -1775,7 +1775,7 @@ PyTypeObject repeat_type = {
17751775
0, /* tp_descr_set */
17761776
0, /* tp_dictoffset */
17771777
0, /* tp_init */
1778-
PyType_GenericAlloc, /* tp_alloc */
1778+
0, /* tp_alloc */
17791779
repeat_new, /* tp_new */
17801780
PyObject_GC_Del, /* tp_free */
17811781
};

0 commit comments

Comments
 (0)