[Py-MAD] A propósito de mi charla sobre "memory leaks"

J. Javier Maestro jjmaestro at ieee.org
Sat Dec 21 07:42:26 CET 2013


2013/12/20 piranna at gmail.com <piranna at gmail.com>

> ¿Entonces ya se podra usar __del__ sin problemas? ¿Cerrar archivos
> destruyendo el objeto?
>
> Directamente del PEP,

BENEFITS
The primary benefits of this PEP regard objects with finalizers, such as
objects with a __del__ method and generators with a finally block. Those
objects can now be reclaimed when they are part of a reference cycle.

Así que sí, __del__ será seguro y se arreglará y/o romperá (potencialmente)
mucho código Python existente.

-- 
jotas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.es.python.org/pipermail/madrid/attachments/20131220/5fedf8a7/attachment.html>


More information about the Madrid mailing list