[pygtk] gpointer data on callback
Wed, 27 Sep 2000 14:32:53 +0800 (WST)
On Wed, 27 Sep 2000, D-Man wrote:
> What if Python switched to gc instead of ref counting?
> I have heard of a good gc freely available for C/C++ written by Hans Boehm.
> >From what I've read it works about as good as the malloc/free implementations, but
> without the developer's headaches with memory leaks.
> The intire interpreter, not just the python code, could use the collector to
> make memory management easier. Then you wouldn't have these problems with the
> callbacks and the ref count.
There is almost no chance of adding another GC to the mix for pygtk. Both
python and gtk do reference counted garbage collection. The objects in
question are python objects, so are using reference counting already, and
there is no way to change that.