]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Reword the finalization note.
authorGregory P. Smith <greg@krypto.org>
Thu, 10 Mar 2011 19:28:50 +0000 (11:28 -0800)
committerGregory P. Smith <greg@krypto.org>
Thu, 10 Mar 2011 19:28:50 +0000 (11:28 -0800)
Doc/reference/datamodel.rst

index 11269443416867a952039d0d06249964eb291371..dca01dea9d3015fe3bedb1cf9ae412e4df4d16e2 100644 (file)
@@ -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