> <mailto:
roed...@gmail.com>> wrote:
> > 1. Are there any objections to continuing to allow this
> backslash notation?
>
> At least not from me.
>
> > 2. Are there any opinions on whether we should change the format
> some
> > files in sage/tests to use "....: " rather than "..." for line
> > continuations?
>
> Since "....: " is shown in interactive sessions if you define something
> that spans over several lines, I'd actually appreciate to use ".....: "
> rather than "...". In that way, one could simply copy-and-paste when
> creating a doc test.
>
> However, it would also be nice if doc tests could simply be pasted into
> an interactive session.
>
>
> I agree that this would be nice. I recall a discussion from Sage Days
> 40.5 where Volker was working on upgrading IPython and there was a
> choice to be made between being able to paste in doctests and something
> else, but I don't recall the details.
It was probably the tradeoff between automatic indentation and pasting
in lines. If you have auto indent, then pasting in lines that end in a
: mess up the indentation. IPython says that you should use %cpaste to
go into a "paste" mode, which turns off autoindentation, among other things.
By the way, I think we're about finishing up the IPython upgrade at
#12719. People are welcome to review it and test it out! I'm
particularly curious how it and this ticket interact, since both are
changing the doctest framework a bit.
Thanks,
Jason