summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2011-03-10 19:34:52 (GMT)
committerGregory P. Smith <greg@krypto.org>2011-03-10 19:34:52 (GMT)
commit1aea1dabe527ae35006671c0eb8879042e398088 (patch)
tree1ddc0d54610c216756ab95e4135df1cfd0ba23d7
parent7eecd224111c51b3ebf3761b62588edc768bb5e3 (diff)
parentf2b5673f736be86212ebf185182310bb318740c6 (diff)
downloadcpython-1aea1dabe527ae35006671c0eb8879042e398088.zip
cpython-1aea1dabe527ae35006671c0eb8879042e398088.tar.gz
cpython-1aea1dabe527ae35006671c0eb8879042e398088.tar.bz2
Explicitly mention that people should not depend on immediate
finalization of objects.
-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