#11621: Preparser could accomodate multiline input and continuation lines
------------------------------+---------------------------------------------
   Reporter:  rbeezer         |          Owner:  was       
       Type:  enhancement     |         Status:  new       
   Priority:  minor           |      Milestone:  sage-4.7.2
  Component:  user interface  |       Keywords:            
Work_issues:                  |       Upstream:  N/A       
   Reviewer:                  |         Author:            
     Merged:                  |   Dependencies:            
------------------------------+---------------------------------------------
 It would be an improvement to have the preparser recognize when an input
 line follows Python conventions for multiline input via Python's rules for
 continuation lines and mechanisms for indicating continuation lines in
 doctests, etc (namely "..." and perhaps soon "....:").  If you paste the
 following into a command-line session:

 {{{
 T(r, t) = [r^2,
 ...        t^2]
 }}}

 the result is:

 {{{
 sage: T(r, t) = [r^2,
 ------------------------------------------------------------
    File "<ipython console>", line 1
      __tmp__=var("r,t"); T =
 symbolic_expression([r**Integer(2),).function(r,t)
                                                                 ^
 SyntaxError: invalid syntax

 sage: ...        t^2]
 ------------------------------------------------------------
    File "<ipython console>", line 1
      ...        t**Integer(2)]
      ^
 SyntaxError: invalid syntax
 }}}

 Some discussion at

 http://groups.google.com/group/sage-
 devel/browse_thread/thread/81a3cce1ebfefd0e

 See related #10458.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11621>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

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

Reply via email to