[ python-Feature Requests-938302 ] Py_INCREF/DECREF available as macros only

SourceForge.net noreply at sourceforge.net
Tue Apr 20 12:55:12 EDT 2004


Feature Requests item #938302, was opened at 2004-04-19 22:37
Message generated for change (Comment added) made by etrepum
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=938302&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Bob Ippolito (etrepum)
Assigned to: Nobody/Anonymous (nobody)
Summary: Py_INCREF/DECREF available as macros only

Initial Comment:
I have an application where I locate a python shared library, link to 
it, and bind a few symbols at runtime in order to run some Python 
code.  I need to be able to use Py_INCREF and Py_DECREF from 
this code (to show nice output if there is an exception), but since it 
is done dynamically my code has no idea what the definitions of 
those macros were.  This is especially bad because they are 
different for a debugging build.

I would like Py_INCREF and Py_DECREF to be available as exported 
functions *somewhere* in the Python shared library.

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

>Comment By: Bob Ippolito (etrepum)
Date: 2004-04-20 12:55

Message:
Logged In: YES 
user_id=139309

Where do those go?  Does it *need* to be well documented right away?  
It's not useful very often ;)

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

Comment By: Thomas Heller (theller)
Date: 2004-04-20 12:39

Message:
Logged In: YES 
user_id=11105

Docs are missing ;-)

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

Comment By: Bob Ippolito (etrepum)
Date: 2004-04-20 12:35

Message:
Logged In: YES 
user_id=139309

Here's a patch.. Py_IncRef and Py_DecRef for Py_XINCREF and 
Py_XDECREF respectively.

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

Comment By: Thomas Heller (theller)
Date: 2004-04-20 12:20

Message:
Logged In: YES 
user_id=11105

Bob, I understand your desire and will support it.  Would
you like to work on a patch?

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

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



More information about the Python-bugs-list mailing list