#16592: bug in evaluation of maxima function with product/quotient/power 
argument
------------------------------+------------------------
       Reporter:  rws         |        Owner:
           Type:  defect      |       Status:  new
       Priority:  major       |    Milestone:  sage-6.3
      Component:  interfaces  |   Resolution:
       Keywords:              |    Merged in:
        Authors:              |    Reviewers:
Report Upstream:  N/A         |  Work issues:
         Branch:              |       Commit:
   Dependencies:              |     Stopgaps:
------------------------------+------------------------

Comment (by nbruin):

 `str` is more for human consumption, so if you have to choose to handle
 something via a string, `repr` is the better one to go for:
 {{{
 sage: str(k*x)
 '                                      f x'
 sage: repr(k*x)
 'f*x'
 }}}
 or with format strings:
 {{{
 sage: "%r"%(k*x)
 'f*x'
 sage: "%s"%(k*x)
 '                                      f x'
 }}}
 The len doesn't come i, by the way:
 {{{
 sage: def tt(*args): return len(args)
 sage: tt(k*x)
 1
 }}}
 I'd say `%r` is the better one to go for.

--
Ticket URL: <http://trac.sagemath.org/ticket/16592#comment:2>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to