Reference count

Aahz aahz at pythoncraft.com
Mon Aug 11 15:30:21 EDT 2003


In article <mailman.1060626321.10505.python-list at python.org>,
Pablo Yabo <pyabo at novamens.com> wrote:
>
>I'm embedding Python as script language of a application.
>I need to create objects in Python an keep them alive as they are GUI
>objects.
>How can I increment the reference count of the objects in order to prevent
>garbage collector destroy them?

Read "Extending and Embedding" in the standard Python docs.  You need to
understand all of it.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

This is Python.  We don't care much about theory, except where it intersects 
with useful practice.  --Aahz




More information about the Python-list mailing list