[Patches] [ python-Patches-603548 ] Python object refcount accessors

noreply@sourceforge.net noreply@sourceforge.net
Mon, 02 Sep 2002 08:33:27 -0700


Patches item #603548, was opened at 2002-09-02 11:10
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=603548&group_id=5470

Category: Core (C code)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Rolf Kalbermatter (labviewer)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python object refcount accessors

Initial Comment:
It could be useful for more generic clients of the Python 
core to not have to worry about the actual layout of 
Py_ObjectHEAD and other things. So I propose to add 
the two additional functions:

int PyObject_IncRef(PyObject *ob)
int PyObject_DecRef(PyObject *ob)

Those functions could also be added to the Python 2.2 if 
any bug fix might be pending for it.

----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2002-09-02 11:33

Message:
Logged In: YES 
user_id=31435

What's your objection to the existing Py_INCREF() and 
Py_DECREF()?  Or didn't you know about them?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=603548&group_id=5470