summaryrefslogtreecommitdiffstats
path: root/Doc/ref/ref3.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-07-24 15:36:43 (GMT)
committerGuido van Rossum <guido@python.org>1998-07-24 15:36:43 (GMT)
commit7c0240f11235bb24778ba4e9484ce683497b4ca2 (patch)
tree6f822bc72fb0c28be5c45b40e38966c20937b323 /Doc/ref/ref3.tex
parentc2aa9fbad9dc5befd22f579363880b9fce30a552 (diff)
downloadcpython-7c0240f11235bb24778ba4e9484ce683497b4ca2.zip
cpython-7c0240f11235bb24778ba4e9484ce683497b4ca2.tar.gz
cpython-7c0240f11235bb24778ba4e9484ce683497b4ca2.tar.bz2
e.g. -> e.g.,
Diffstat (limited to 'Doc/ref/ref3.tex')
-rw-r--r--Doc/ref/ref3.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex
index 4b64e8e..037191e 100644
--- a/Doc/ref/ref3.tex
+++ b/Doc/ref/ref3.tex
@@ -810,7 +810,8 @@ part of the instance, e.g., ``\code{BaseClass.__init__(self, [args...])}''.
\item[{\tt __del__(self)}]
-Called when the instance is about to be destroyed. If a base class
+Called when the instance is about to be destroyed. This is also
+called a destructor\index{destructor}. If a base class
has a \method{__del__()} method, the derived class's \method{__del__()} method
must explicitly call it to ensure proper deletion of the base class
part of the instance. Note that it is possible (though not recommended!)
@@ -1215,7 +1216,7 @@ the other type here).
\strong{Coercion rules}: to evaluate \var{x} \var{op} \var{y}, the
following steps are taken (where \method{__op__()} and
\method{__rop__()} are the method names corresponding to \var{op},
-e.g. if var{op} is `\code{+}', \method{__add__()} and
+e.g., if var{op} is `\code{+}', \method{__add__()} and
\method{__radd__()} are used). If an exception occurs at any point,
the evaluation is abandoned and exception handling takes over.