summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-07-23 02:48:24 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-07-23 02:48:24 (GMT)
commit336689b9cc1ce453f5d7add9f464149ce12977f7 (patch)
treea185e278e9910686adfeda215ed595b11a38ebd2 /Doc/lib
parentcab5b94592eeace0988d00bba62dc1257405302d (diff)
downloadcpython-336689b9cc1ce453f5d7add9f464149ce12977f7.zip
cpython-336689b9cc1ce453f5d7add9f464149ce12977f7.tar.gz
cpython-336689b9cc1ce453f5d7add9f464149ce12977f7.tar.bz2
A few trivial edits.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libdoctest.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex
index 6c72dbc..919f86b 100644
--- a/Doc/lib/libdoctest.tex
+++ b/Doc/lib/libdoctest.tex
@@ -154,7 +154,7 @@ if __name__ == "__main__":
_test()
\end{verbatim}
-If you want to test the module as the main module, you don't need to
+If you want to test the current module as the main module, you don't need to
pass M to \function{testmod()}; in this case, it will test the current
module.
@@ -367,19 +367,19 @@ The fine print:
them:
\begin{verbatim}
->>> def f(x):
+>>> def f(x):
... r'''Backslashes in a raw docstring: m\n'''
>>> print f.__doc__
Backslashes in a raw docstring: m\n
\end{verbatim}
-
+
Otherwise, the backslash will be interpreted as part of the string.
E.g., the "\textbackslash" above would be interpreted as a newline
character. Alternatively, you can double each backslash in the
doctest version (and not use a raw string):
\begin{verbatim}
->>> def f(x):
+>>> def f(x):
... '''Backslashes in a raw docstring: m\\n'''
>>> print f.__doc__
Backslashes in a raw docstring: m\n