#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):

 Replying to [comment:87 jpflori]:
 > Applying "lazy" patch breaks more test for me:
 >
 >  * lazy objects are not callable so maxima(x) fails in
 sage.plot.plot3d.plot3d
 >  * exception raised in sage.plot.line

 Sorry and thanks for catching. Both are solved by adding a "__call__"
 method to lazy:
 {{{
     def __call__(self,*args,**kwargs):
         import sage.interfaces.maxima_lib
         sage.calculus.calculus.maxima = sage.interfaces.maxima_lib.maxima
         return sage.calculus.calculus.maxima(*args,**kwargs)
 }}}
 but in fact {{{sage.misc.lazy_import}}} does exactly what we need here.
 (See attached patch). I've ran doctests and I don't think the lazy causes
 additional fails.

 Incidentally, I'm getting a silly doctest failure
 {{{
 sage -t  "devel/sage-main/sage/interfaces/maxima_abstract.py"
 }}}
 for the result of
 {{{
 sage: sorted(maxima._commands(verbose=False))
 }}}
 but it looks like nothing has changed. Perhaps my build is corrupted.

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