David Roe <roed.m...@gmail.com> writes: > Hi everyone, > I'm working on #12415 and am revising the methods for continuing > lines. Currently you can continue a line with the standard python > ..., which looks good in standard Python doctests since it has the > same length as >>>, but doesn't look at nice in Sage. After #12415 > the doctesting code will replace "....: " with "..." before passing > it on to Python's doctest module. > > Sage currently treats a backslash at the end of the line as a > continuation character which is nonstandard but allows us to write > large integers that span multiple lines. For example: > > sage: n = 7403756347956171282804679609742957314259318888\ > ....: 9231289084936232638972765034028266276891996419625117\ > ....: 8439958943305021275853701189680982867331732731089309\ > ....: 0055250511687706329907239638078671008609696253793465\ > ....: 0563796359 > > 1. Are there any objections to continuing to allow this backslash > notation?
No objection. > 2. Are there any opinions on whether we should change the format > some files in sage/tests to use "....: " rather than "..." for line > continuations? The "..." continuations will continue to work so > doctests pass even without this change, but it would make the > formatting of the tests more readable. On the other hand I know that > many of the tests come from published books and there's value in > staying exactly the same as the book. Yes, please change this! The first trac ticket I opened, #10458, was about changing this :) > The new doctesting code at #12415 is almost done. Over the past week > I fixed a bunch of issues and there's only one remaining that I'm > aware of: a segfault that occurs if test/interrupt.pyx is tested, but > only if it's not the first file being tested. Help debugging from > someone who's more versed in Sage's signal handling would be welcome. > David > http://trac.sagemath.org/sage_trac/ticket/12415 Bravo! Here's hoping it gets in soon. -Keshav -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sage-devel@googlegroups.com. To unsubscribe from this group, send email to sage-devel+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en.