On 14 Dez., 14:02, Minh Nguyen <nguyenmi...@gmail.com
> At ticket #10458  is a patch that allows the doctesting framework
> to deal with doctest lines that begin with "....:". Such a line is
> exactly what you would get if you work with IPython. By default
> IPython prints out "....:" for line continuation, as compared to the
> Python shell which prints "...". I suggested on the ticket that we
> need to configure or patch IPython to get it to use "...", rather than
> change the doctesting framework code to allow it to parse lines with
> "....:". With the said patch at #10458, you could now include doctests
> such as the following in a Sage module:
> sage: statement-more-statement
> ....: more-statements
> Any thoughts on this issue?
IMHO we should use the (over-due) fix made by the current patch at the
Patching IPython (and/or maybe ncadoctest.py) rather than our
doctesting framework for that purpose doesn't make sense to me.
We already replace "sage: " by ">>> ", so why not also replace "....:
" by "... ", which the patch does?
We still have to fix losing the non-preparsed (i.e. verbatim Sage
input) source code of *continuation* lines, which is passed to Python
in end-of-line comments.