[Python-checkins] peps: An object's finalizer will only ever be called once, even if resurrected.
antoine.pitrou
python-checkins at python.org
Sat Jun 15 20:01:15 CEST 2013
http://hg.python.org/peps/rev/b9c80ae6a17d
changeset: 4930:b9c80ae6a17d
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Jun 15 19:59:55 2013 +0200
summary:
An object's finalizer will only ever be called once, even if resurrected.
files:
pep-0442.txt | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/pep-0442.txt b/pep-0442.txt
--- a/pep-0442.txt
+++ b/pep-0442.txt
@@ -201,8 +201,7 @@
--------------
Following this scheme, an object's finalizer is always called exactly
-once. The only exception is if an object is resurrected: the finalizer
-will be called again when the object becomes unreachable again.
+once, even if it was resurrected afterwards.
For CI objects, the order in which finalizers are called (step 2 above)
is undefined.
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list