summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-07-17 14:47:12 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-07-17 14:47:12 (GMT)
commit943277ecd34bb76fe8f097a508f995f7bf1e4b45 (patch)
treef05171f5c63ae928dc7e60bfff66b9cea117ace9
parente9a92aa03ac91c307a90db8eefff22cea1b97399 (diff)
downloadcpython-943277ecd34bb76fe8f097a508f995f7bf1e4b45.zip
cpython-943277ecd34bb76fe8f097a508f995f7bf1e4b45.tar.gz
cpython-943277ecd34bb76fe8f097a508f995f7bf1e4b45.tar.bz2
Minor corrections.
-rw-r--r--Doc/lib/libdoctest.tex8
-rw-r--r--Doc/ref/ref3.tex2
2 files changed, 8 insertions, 2 deletions
diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex
index 6bd6489..139b384 100644
--- a/Doc/lib/libdoctest.tex
+++ b/Doc/lib/libdoctest.tex
@@ -193,12 +193,15 @@ module docstring, and all function, class and method docstrings are
searched. Optionally, the tester can be directed to exclude
docstrings attached to objects with private names.
Objects imported into the module are not searched.
+\versionchanged[Previously, the tester defaulted to skipping objects
+with private names (to obtain version independence, explicitly specify
+\var{isprivate} when launching doctests)]{2.3}
In addition, if \code{M.__test__} exists and "is true", it must be a
dict, and each entry maps a (string) name to a function object, class
object, or string. Function and class object docstrings found from
\code{M.__test__} are searched even if the the tester has been
-directly to skip over private names in the rest of the module.
+directed to skip over private names in the rest of the module.
In output, a key \code{K} in \code{M.__test__} appears with name
\begin{verbatim}
@@ -312,6 +315,9 @@ are run.
\end{verbatim}
\versionadded{2.3}
+ \warning{\function{DocTestSuite()} does not current search \code{M.__test__}
+ and its search technique does not exactly match \function{testmod()} in
+ every detail. Future versions will bring the two into convergence.}
\end{funcdesc}
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex
index 771067d..98618f1 100644
--- a/Doc/ref/ref3.tex
+++ b/Doc/ref/ref3.tex
@@ -1150,7 +1150,7 @@ a Boolean value, else a \exception{TypeError} will be raised.
By convention, \code{False} is used for false and \code{True} for true.
There are no implied relationships among the comparison operators.
-The truth of {\var{x}==\var{y}} does not imply that \code{\var{x}!=\var{y}}
+The truth of \code{\var{x}==\var{y}} does not imply that \code{\var{x}!=\var{y}}
is false. Accordingly, when defining \method{__eq__}, one should also
define \method{__ne__} so that the operators will behave as expected.