[Python-checkins] (3.1): Reword the finalization note.

gregory.p.smith python-checkins at python.org
Thu Mar 10 20:35:32 CET 2011


http://hg.python.org/cpython/rev/d1356689e089
changeset: 68351:d1356689e089
branch: 3.1
user: Gregory P. Smith <greg at krypto.org>
date: Thu Mar 10 11:28:50 2011 -0800
summary:
 Reword the finalization note.
files:
 Doc/reference/datamodel.rst
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -69,8 +69,8 @@
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /