#7377: Symbolic Ring to Maxima via EclObject
-----------------------------------------------------------------------+----
   Reporter:  nbruin                                                   |       
Owner:  nbruin      
       Type:  enhancement                                              |      
Status:  needs_work  
   Priority:  major                                                    |   
Milestone:  sage-feature
  Component:  symbolics                                                |    
Keywords:              
     Author:  Nils Bruin, Jean-Pierre Flori                            |    
Upstream:  N/A         
   Reviewer:  Jean-Pierre Flori, François Bissey, Karl-Dieter Crisman  |      
Merged:              
Work_issues:                                                           |  
-----------------------------------------------------------------------+----

Comment(by nbruin):

 the lisp function {{{retrieve}}} in maxima is responsible for asking
 questions, so we just monkey-patch it to throw an error with an
 informative message instead. The patch trac_7377-better-ask-error.patch
 improves the readability of this message by executing exactly the original
 code in retrieve, but wrapped in a {{{(with-output-to-string (*standard-
 output*) ...)}}}. The method is generally applicable and may be useful in
 adapting other printing bits.

 Oddly enough, this patch does not invalidate any additional doctests, but:
 {{{
 sage -t  "devel/sage-devel/sage/interfaces/maxima_lib.py"
 **********************************************************************
 Error: TAB character found.
 }}}
 so perhaps maxima inserts a TAB in the error message. Are TABs not allowed
 in doctest output?
 (it looks like one gets produced and matched by a "..." in the doctest
 template). A {{{sage -t --verbose}}} shows that no individual test fails.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7377#comment:48>
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