C extensions and memory leakage

Sheldon shejo284 at gmail.com
Fri Nov 17 05:07:19 EST 2006


Marc 'BlackJack' Rintsch wrote:
> In <1163749907.941949.201880 at h48g2000cwc.googlegroups.com>, Sheldon wrote:
>
> > Now I am wondering if the problem is in Python and the wrapper? Does
> > anybody have any idea or experience with this? I am running on
> > Mandrake10 using python 2.3. I am not exactly sure which C wrapper I am
> > using as I have copied it from another person.
>
> What do you mean by "C wrapper"?  You know that Python uses reference
> counters to manage memory and that you are responsible for these counters
> if you are dealing with Python objects in your C extension?
>
> Ciao,
> 	Marc 'BlackJack' Rintsch

I am very new at this C extensions in Python so my term wrapper was
probably a misnomer. Perhaps glue is better or the interface that
allows the exchange of data between Python and C.
Yes, I am using python objects in my C extension.
Tell me where I can find out more about this reference counters? Or
perhaps you can tell something about it.

/Sheldon




More information about the Python-list mailing list