[Zope-Checkins] CVS: Zope3/lib/python/Persistence - cPersistence.c:1.1.2.4
Guido van Rossum
guido@python.org
Wed, 13 Feb 2002 14:13:21 -0500
Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv8788
Modified Files:
Tag: Zope-3x-branch
cPersistence.c
Log Message:
Add {NULL} sentinels to arrays of attribute definitions.
=== Zope3/lib/python/Persistence/cPersistence.c 1.1.2.3 => 1.1.2.4 ===
{"__setstate__", persist_setstate, METH_O, },
{"_p_deactivate", (PyCFunction)persist_deactivate, METH_NOARGS, },
+ {NULL}
};
static PyObject *
@@ -312,6 +313,7 @@
static PyGetSetDef persist_getsets[] = {
{"_p_changed", (getter)persist_get_state, (setter)persist_set_state},
{"_p_time", (getter)persist_get_time},
+ {NULL}
};
/* XXX should any of these be read-only? */
@@ -322,6 +324,7 @@
{"_p_serial", T_OBJECT, offsetof(PyPersistObject, po_serial)},
/* XXX should state should be exposed? */
{"_p_state", T_INT, offsetof(PyPersistObject, po_state)},
+ {NULL}
};
/* The crucial methods for a persistent object are the tp_getattr and