diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-01-29 03:58:16 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-01-29 03:58:16 (GMT) |
commit | e4b6ab79ec3dd1287117cd86aa36dadd55c8c87a (patch) | |
tree | 5b45aa7854c84f8f87377ca1cd58317c3bbbf641 /Doc | |
parent | 83ef75603a98532ce40e8400876f3275ef50aa7e (diff) | |
download | cpython-e4b6ab79ec3dd1287117cd86aa36dadd55c8c87a.zip cpython-e4b6ab79ec3dd1287117cd86aa36dadd55c8c87a.tar.gz cpython-e4b6ab79ec3dd1287117cd86aa36dadd55c8c87a.tar.bz2 |
Merged revisions 69078-69079 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69078 | brett.cannon | 2009-01-28 16:54:11 -0800 (Wed, 28 Jan 2009) | 2 lines
Clarify some __del__ stuff.
........
r69079 | brett.cannon | 2009-01-28 16:54:32 -0800 (Wed, 28 Jan 2009) | 2 lines
Minor spelling mistake in datetime docs.
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/datetime.rst | 2 | ||||
-rw-r--r-- | 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 570ed9e..637326d 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1269,7 +1269,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 068f0fd..fae7352 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1249,7 +1249,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 |