Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
456ff916
Commit
456ff916
authored
Sep 27, 2004
by
Edward Loper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed typo in multi-line exception example
- Fixed indentation for a verbatim block
parent
36ee8ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Doc/lib/libdoctest.tex
Doc/lib/libdoctest.tex
+6
-6
No files found.
Doc/lib/libdoctest.tex
View file @
456ff916
...
...
@@ -443,7 +443,7 @@ last line of a traceback, but can extend across multiple lines if the
exception has a multi-line detail:
\begin{verbatim}
>>> raise ValueError('multi
\n
line
\ndetail
')
>>> raise ValueError('multi
\n
line
\ndetail
')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: multi
...
...
@@ -460,7 +460,7 @@ significant documentation value to the example. So the last example
is probably better as:
\begin{verbatim}
>>> raise ValueError('multi
\n
line
\ndetail
')
>>> raise ValueError('multi
\n
line
\ndetail
')
Traceback (most recent call last):
...
ValueError: multi
...
...
@@ -1699,10 +1699,10 @@ the synthesized code under the debugger:
\function
{
script
_
from
_
examples()
}
above. For example, if module
\file
{
a.py
}
contains a top-level function
\function
{
f()
}
, then
\begin{verbatim}
import a, doctest
print doctest.testsource(a, "a.f")
\end{verbatim}
\begin{verbatim}
import a, doctest
print doctest.testsource(a, "a.f")
\end{verbatim}
prints a script version of function
\function
{
f()
}
's docstring,
with doctests converted to code, and the rest placed in comments.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment