Py_DECREF/Py_INCREF as Functions?

Kevin D. Smith Kevin.Smith at
Sat Mar 31 01:21:53 CEST 2007

I'm trying to use Python from another application that allows me to 
load functions from a DLL.  While I have most of the API working, I 
have one big problem: Py_DECREF and PyINCREF are macros which I can't 
load from the Python DLL.  Since I can't decref any objects, I'm 
leaking memory all over the place.  Is there any way to decref an 
object with a function that can be loaded from the Python DLL?

Kevin D. Smith

More information about the Python-list mailing list