En Wed, 31 Oct 2007 22:01:53 -0300, <[EMAIL PROTECTED]> escribió:
> i checked this:
> http://svn.python.org/projects/python/trunk/Doc/data/refcounts.dat
> and it seems that
> PyDict_SetItem incref the value being added and the key
> and PyDict_DelItem does not decrement any refcounts
> so i have
i checked this:
http://svn.python.org/projects/python/trunk/Doc/data/refcounts.dat
and it seems that
PyDict_SetItem incref the value being added and the key
and PyDict_DelItem does not decrement any refcounts
so i have to do so manually for the key and for the data( by calling
PyDict_GetItem first