Re: PyDict_*() refcount assumptions

2007-10-31 Thread Gabriel Genellina
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

PyDict_*() refcount assumptions

2007-10-31 Thread sndive
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