INCREF DECREF manually

Jean-Michel Pichavant jeanmichel at sequans.com
Mon May 10 10:14:19 EDT 2010


moerchendiser2k3 wrote:
> Hi,
>
> just a small question. Is it possible to change the refcount of a
> reference manually? For debugging / ...
>
> Thanks!
>
> moerchendiser2k3
>   
Why don't you just create a global reference to the object ? Unless this 
one is removed, the object will be kept in memory.

JM



More information about the Python-list mailing list