summaryrefslogtreecommitdiffstats
path: root/Doc/reference/datamodel.rst
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2011-03-10 19:32:29 (GMT)
committerGregory P. Smith <greg@krypto.org>2011-03-10 19:32:29 (GMT)
commitf2b5673f736be86212ebf185182310bb318740c6 (patch)
tree3dccb15f5ed60f60a15d2b38d71091bcc7415a5b /Doc/reference/datamodel.rst
parent40dcb1d2870bfb605cd262b857f9df5af1291d06 (diff)
parentc5425472110f69b444ae224e8fd97c14ee9fcb0f (diff)
downloadcpython-f2b5673f736be86212ebf185182310bb318740c6.zip
cpython-f2b5673f736be86212ebf185182310bb318740c6.tar.gz
cpython-f2b5673f736be86212ebf185182310bb318740c6.tar.bz2
Explicitly mention that people should not depend on immediate
finalization of objects. HG Enter commit message. Lines beginning with 'HG:' are removed.
Diffstat (limited to 'Doc/reference/datamodel.rst')
-rw-r--r--Doc/reference/datamodel.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index e24a8e7..d3fb2c8 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -69,6 +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 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