PyArg_ParseTuple() & Py_DECREF()

rwgk at rwgk at
Wed Mar 8 04:36:33 CET 2000

For the records: The answer is actually here:
I am not sure why I missed it before.

In article <89ph17$7si$1 at>,
  rwgk at wrote:
> Consider the following two lines of source code at the
> beginning of a C extension function:
>   PyObject *O;
>   if (! PyArg_ParseTuple(args, "O", &O)) return NULL;
> Is it necessary to call Py_DECREF(O) before leaving the
> extension function?
> Thanks!
>         Ralf
> Sent via
> Before you buy.

Sent via
Before you buy.

More information about the Python-list mailing list