[Python-checkins] r69078 - python/trunk/Doc/reference/datamodel.rst

brett.cannon python-checkins at python.org
Thu Jan 29 01:54:12 CET 2009


Author: brett.cannon
Date: Thu Jan 29 01:54:11 2009
New Revision: 69078
Log:
Clarify some __del__ stuff.
Modified:
 python/trunk/Doc/reference/datamodel.rst
Modified: python/trunk/Doc/reference/datamodel.rst
==============================================================================
--- python/trunk/Doc/reference/datamodel.rst	(original)
+++ python/trunk/Doc/reference/datamodel.rst	Thu Jan 29 01:54:11 2009
@@ -1257,7 +1257,9 @@
 is printed to ``sys.stderr`` instead. Also, when :meth:`__del__` is invoked in
 response to a module being deleted (e.g., when execution of the program is
 done), other globals referenced by the :meth:`__del__` method may already have
- been deleted. For this reason, :meth:`__del__` methods should do the absolute
+ been deleted or in the process of being torn down (e.g. the import
+ machinery shutting down). For this reason, :meth:`__del__` methods
+ should do the absolute
 minimum needed to maintain external invariants. Starting with version 1.5,
 Python guarantees that globals whose name begins with a single underscore are
 deleted from their module before other globals are deleted; if no other


More information about the Python-checkins mailing list

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