On 7/15/10 1:10 PM, Robert Bradshaw wrote: > On Thu, Jul 15, 2010 at 11:07 AM, Robert Kern<[email protected]> wrote:
>> Would using Py_XINCREF/Py_XDECREF allow the automatic refcounting to simply >> ignore NULL pointers but still work for the usual case? Or would there be >> other >> issues? > > There would be lots of other issues. An object is assumed to be an > valid Python reference, ready for passing on to other functions, > insertion into a list, assigning to variables, etc. Works for me. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
