Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1327f7

Browse files
committed
Merged revisions 69078-69080 via svnmerge from
svn+ssh://[email protected]/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. ........ r69080 | brett.cannon | 2009-01-28 16:55:33 -0800 (Wed, 28 Jan 2009) | 2 lines Ignore .pyc and .pyo files. ........
1 parent 19f8bd2 commit e1327f7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ Example:
12661266
:class:`tzinfo` Objects
12671267
-----------------------
12681268

1269-
:class:`tzinfo` is an abstract base clase, meaning that this class should not be
1269+
:class:`tzinfo` is an abstract base class, meaning that this class should not be
12701270
instantiated directly. You need to derive a concrete subclass, and (at least)
12711271
supply implementations of the standard :class:`tzinfo` methods needed by the
12721272
:class:`datetime` methods you use. The :mod:`datetime` module does not supply

Doc/reference/datamodel.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,9 @@ Basic customization
10961096
is printed to ``sys.stderr`` instead. Also, when :meth:`__del__` is invoked in
10971097
response to a module being deleted (e.g., when execution of the program is
10981098
done), other globals referenced by the :meth:`__del__` method may already have
1099-
been deleted. For this reason, :meth:`__del__` methods should do the absolute
1099+
been deleted or in the process of being torn down (e.g. the import
1100+
machinery shutting down). For this reason, :meth:`__del__` methods
1101+
should do the absolute
11001102
minimum needed to maintain external invariants. Starting with version 1.5,
11011103
Python guarantees that globals whose name begins with a single underscore are
11021104
deleted from their module before other globals are deleted; if no other

0 commit comments

Comments
 (0)