[pyar] Problemas de memory leak
Roberto Alsina
ralsina en netmanagers.com.ar
Mar Oct 5 14:14:12 ART 2010
Tengo un reporte de bug en rst2pdf de que pierde memoria. Acá esta:
http://code.google.com/p/rst2pdf/issues/detail?id=343
Pero lo basico es esto:
------------------
class default_object(dict):
''' By default, RSON objects are dictionaries that
allow attribute access to their existing contents.
'''
def __init__(self):
self.__dict__ = self
The problem is that since dict is implemented in C, if there's a circular
reference to itself, the object would not get garbage collected.
------------------
Que me sugieren?
More information about the pyar
mailing list