[Zope-Checkins] CVS: Zope3/lib/python/Persistence - cPersistence.c:1.9
Jeremy Hylton
jeremy@zope.com
Thu, 11 Jul 2002 11:52:07 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv367
Modified Files:
cPersistence.c
Log Message:
Incref IPersistent before adding to the implements tuple via macro.
=== Zope3/lib/python/Persistence/cPersistence.c 1.8 => 1.9 ===
implements = PyTuple_New(1);
if (implements == NULL)
goto err;
+ Py_INCREF(iface);
PyTuple_SET_ITEM(implements, 0, iface);
assert(type->tp_dict != NULL);
r = PyDict_SetItemString(type->tp_dict, "__implements__", implements);