[Python-checkins] CVS: python/dist/src/Modules xxsubtype.c,1.1.2.1,1.1.2.2
Guido van Rossum
gvanrossum@users.sourceforge.net
Sun, 08 Jul 2001 18:19:05 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv16061
Modified Files:
Tag: descr-branch
xxsubtype.c
Log Message:
Shouldn't specify PyType_Generic{Alloc,New} in the tp_{alloc,new}
slots -- these should inherit the slots from the base types.
Index: xxsubtype.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/Attic/xxsubtype.c,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** xxsubtype.c 2001/07/06 18:53:47 1.1.2.1
--- xxsubtype.c 2001/07/09 01:19:03 1.1.2.2
***************
*** 67,71 ****
0, /* tp_call */
0, /* tp_str */
! PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
--- 67,71 ----
0, /* tp_call */
0, /* tp_str */
! 0, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
***************
*** 87,92 ****
0, /* tp_dictoffset */
(initproc)spamlist_init, /* tp_init */
! PyType_GenericAlloc, /* tp_alloc */
! PyType_GenericNew, /* tp_new */
};
--- 87,92 ----
0, /* tp_dictoffset */
(initproc)spamlist_init, /* tp_init */
! 0, /* tp_alloc */
! 0, /* tp_new */
};
***************
*** 155,159 ****
0, /* tp_call */
0, /* tp_str */
! PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
--- 155,159 ----
0, /* tp_call */
0, /* tp_str */
! 0, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
***************
*** 175,180 ****
0, /* tp_dictoffset */
(initproc)spamdict_init, /* tp_init */
! PyType_GenericAlloc, /* tp_alloc */
! PyType_GenericNew, /* tp_new */
};
--- 175,180 ----
0, /* tp_dictoffset */
(initproc)spamdict_init, /* tp_init */
! 0, /* tp_alloc */
! 0, /* tp_new */
};