To decref or not to dercref that is my question???

Fred L. Drake, Jr. fdrake at acm.org
Wed Jan 19 17:16:30 EST 2000


Arinte writes:
 > When using PyObject_GetItem, when I am done getting the value that I need
 > from it should I Py_XDECREF it?

  Yes.
  I'm working at getting all the required information into the API
reference manual.  If you are using the CVS version of Python, you can 
look in the file Doc/api/refcounts.dat; the comments at the top of the 
file explain the format.


  -Fred

--
Fred L. Drake, Jr.	  <fdrake at acm.org>
Corporation for National Research Initiatives




More information about the Python-list mailing list