Skip to content

Commit 025f5a7

Browse files
author
brett.cannon
committedJan 29, 2009
Clarify some __del__ stuff.
git-svn-id: http://svn.python.org/projects/python/trunk@69078 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent e919913 commit 025f5a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎Doc/reference/datamodel.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,9 @@ Basic customization
12571257
is printed to ``sys.stderr`` instead. Also, when :meth:`__del__` is invoked in
12581258
response to a module being deleted (e.g., when execution of the program is
12591259
done), other globals referenced by the :meth:`__del__` method may already have
1260-
been deleted. For this reason, :meth:`__del__` methods should do the absolute
1260+
been deleted or in the process of being torn down (e.g. the import
1261+
machinery shutting down). For this reason, :meth:`__del__` methods
1262+
should do the absolute
12611263
minimum needed to maintain external invariants. Starting with version 1.5,
12621264
Python guarantees that globals whose name begins with a single underscore are
12631265
deleted from their module before other globals are deleted; if no other

0 commit comments

Comments
 (0)
Please sign in to comment.