[capi-sig] Does Py_False or Py_True need de-referencing if used in a PyObject_Compare?

Robert Steckroth robertsteckroth at gmail.com
Thu Dec 13 17:21:16 CET 2012

Does the below statement have a memory leak?

if ( PyObject_Compare(update_var, Py_False)

Do I need to assign the Py_False first and DECREF it, or is the above
snippet ok alone.

Bust0ut, Surgemcgee: Systems Engineer ---

More information about the capi-sig mailing list