On 10/24/12 5:29 AM, David Roe wrote:


On Wed, Oct 24, 2012 at 3:45 AM, Simon King <[email protected]
<mailto:[email protected]>> wrote:

    Hi David,

    On 2012-10-24, David Roe <[email protected]
    <mailto:[email protected]>> 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



--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to