seg. fault with ext. module

Gorny gorny at hobbiton.org
Sat Aug 25 10:19:00 EDT 2001


> You forgot to increment the reference count for None, which creates a
> problem at termination time.
>
> See http://www.python.org/doc/current/ext/refcounts.html

If I understand it all well, the problem handles about NOT defining
the reference, so the returned variable stays in memory??
I have to do this *always* when working with variables in the
module which can be accessed from python??
Well thanks in advance...:)

Greets,
Gorny


--
"When I was a little kid, I had this dream where a snake would rule and
dominate
the entire world (actually, I guess that a penguin was also part of the
dream...
but never mind)" -- Python Develper's Handbook, Andre Lessa
http://gorny.cjb.net





More information about the Python-list mailing list