diff options
author | Guido van Rossum <guido@python.org> | 1995-07-07 23:05:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-07-07 23:05:13 (GMT) |
commit | 8fd02194c5c52eca15759a1a5282e0519df6beca (patch) | |
tree | 507dc3e4badab0269ea585b024974edaeb893348 /Doc/ref/ref3.tex | |
parent | ab330d47d63323bf788bb027f05f41b31f9a0fc4 (diff) | |
download | cpython-8fd02194c5c52eca15759a1a5282e0519df6beca.zip cpython-8fd02194c5c52eca15759a1a5282e0519df6beca.tar.gz cpython-8fd02194c5c52eca15759a1a5282e0519df6beca.tar.bz2 |
typos
Diffstat (limited to 'Doc/ref/ref3.tex')
-rw-r--r-- | Doc/ref/ref3.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index 63e91d0..60af2dc 100644 --- a/Doc/ref/ref3.tex +++ b/Doc/ref/ref3.tex @@ -375,7 +375,7 @@ Class objects are described below. When a class object is called as a function, a new class instance (also described below) is created and returned. This implies a call to the class's \verb@__init__@ method if it has one. Any arguments are passed on to the \verb@__init__@ -method --- if there is \verb@__init__@ method, the class must be called +method --- if there is no \verb@__init__@ method, the class must be called without arguments. \ttindex{__init__} \obindex{class} @@ -629,7 +629,7 @@ the interpreter exits. Note that \code{del x} doesn't directly call \code{x.__del__} --- the former decrements the reference count for \code{x} by one, but -\code{x,__del__} is only called when its reference count reaches zero. +\code{x.__del__} is only called when its reference count reaches zero. \item[{\tt __repr__(self)}] Called by the \verb@repr()@ built-in function and by string conversions @@ -666,7 +666,7 @@ and by the built-in function \code{hash()}. Should return a 32-bit integer usable as a hash value for dictionary operations. The only required property is that objects which compare equal have the same hash value; it is advised to somehow -mix together (e.g. using exclusing or) the hash values for the +mix together (e.g. using exclusive or) the hash values for the components of the object that also play a part in comparison of objects. If a class does not define a \code{__cmp__} method it should not define a \code{__hash__} operation either; if it defines |