On 14 May 2010 00:43, Dan Roberts <[email protected]> wrote: > It seems like the only way to make this work is to Py_INCREF() but don't > decref, the CPython guys I talked to seem to think this is ok because we > always tp_free and tp_free shouldn't resurrect. If you guys know of a reason > why this solution won't work, I'd like to know why.
If you do not call Py_DECREF, then you will be in charge of decrementing the various reference counter tracking mechanisms, like _Py_RefTotal global counter, and inc_count(PyTypeObject *)/dec_count(PyTypeObject *) -- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
