doctest-blocks¶
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#doctest-blocks
sample 1¶
reST sample
Doctest blocks are interactive
Python sessions. They begin with
"``>>>``" and end with a blank line.
>>> print "This is a doctest block."
This is a doctest block.
output sample
Doctest blocks are interactive Python sessions. They begin with “>>>” and end with a blank line.
>>> print "This is a doctest block."
This is a doctest block.