From 296382777678489f75aa93342234ded71cc957d8 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 29 Jan 2009 04:37:06 +0000 Subject: [PATCH] Backport r69092 by hand since svnmerge keeps saying there is a conflict on '.'. --- Doc/library/datetime.rst | 2 +- Doc/reference/datamodel.rst | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index e25d042ff9dc..f08272658999 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1266,7 +1266,7 @@ Example: :class:`tzinfo` Objects ----------------------- -:class:`tzinfo` is an abstract base clase, meaning that this class should not be +:class:`tzinfo` is an abstract base class, meaning that this class should not be instantiated directly. You need to derive a concrete subclass, and (at least) supply implementations of the standard :class:`tzinfo` methods needed by the :class:`datetime` methods you use. The :mod:`datetime` module does not supply diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 502305ddf8c9..3fda6a4a68fd 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1096,7 +1096,9 @@ Basic customization 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 -- 2.47.3