[Python-checkins] python/nondist/sandbox/setobj setobject.c, 1.22,
1.23
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Sat Nov 15 21:33:56 EST 2003
Update of /cvsroot/python/python/nondist/sandbox/setobj
In directory sc8-pr-cvs1:/tmp/cvs-serv25116
Modified Files:
setobject.c
Log Message:
Support subclassing in set_copy
Index: setobject.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setobj/setobject.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** setobject.c 16 Nov 2003 02:22:38 -0000 1.22
--- setobject.c 16 Nov 2003 02:33:54 -0000 1.23
***************
*** 134,138 ****
return NULL;
! newso = (setobject *)PyObject_GC_New(setobject, so->ob_type);
if (newso == NULL) {
Py_DECREF(data);
--- 134,139 ----
return NULL;
!
! newso = (setobject *)(so->ob_type->tp_alloc(so->ob_type, 0));
if (newso == NULL) {
Py_DECREF(data);
More information about the Python-checkins
mailing list