From: Gregory P. Smith Date: Thu, 10 Mar 2011 19:28:50 +0000 (-0800) Subject: Reword the finalization note. X-Git-Tag: v3.2.1b1~330^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5425472110f69b444ae224e8fd97c14ee9fcb0f;p=thirdparty%2FPython%2Fcpython.git Reword the finalization note. --- diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 112694434168..dca01dea9d30 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -69,8 +69,8 @@ are still reachable. containing circular references. See the documentation of the :mod:`gc` module for information on controlling the collection of cyclic garbage. Other implementations act differently and CPython may change. - Do not write code that depends on immediate finalization of objects - when they become unreachable (ex: always close your files). + Do not depend on immediate finalization of objects when they become + unreachable (ex: always close files). Note that the use of the implementation's tracing or debugging facilities may keep objects alive that would normally be collectable. Also note that catching