[Python-checkins] python/nondist/sandbox/datetime obj_delta.c,1.14,1.15 test_both.py,1.15,1.16
Neal Norwitz
neal@metaslash.com
Mon, 2 Dec 2002 14:09:58 -0500
> + PyObject *emptytuple = PyTuple_New(0);
> + if (emptytuple != NULL) {
> + result = Py_BuildValue("OOO",
> + self->ob_type,
> + emptytuple,
> + state);
> + Py_DECREF(emptytuple);
> + }
> + Py_DECREF(state);
What is the purpose of emptytuple here? Could/should this code be:
result = Py_BuildValue(...);
if (result != NULL)
Py_DECREF(state);
Neal