#13739: more informative error message from multiplication of symbolic 
expressions
---------------------------+------------------------------------------------
   Reporter:  burcin       |             Owner:  burcin       
       Type:  enhancement  |            Status:  new          
   Priority:  minor        |         Milestone:  sage-5.6     
  Component:  symbolics    |          Keywords:               
Work issues:               |   Report Upstream:  N/A          
  Reviewers:               |           Authors:  Burcin Erocal
  Merged in:               |      Dependencies:               
   Stopgaps:               |  
---------------------------+------------------------------------------------
 The error returned by multiplication of symbolic expressions is hard coded
 to `ArithmeticError` in the Cython wrappers (`sage/libs/ginac.pxd`). Since
 the time that was written, Cython got far better at handling errors, so
 this is not necessary. Removing this directive actually allows us to
 return more informative error messages. For example:

 {{{
 sage: t = GF(5)(3)
 sage: u = GF(7)(4)
 sage: var('y')
 y
 sage: e = t*x + u*y
 sage: t*e
 Traceback (most recent call last):
 ...
 TypeError: unsupported operand parent(s) for '*': 'Finite Field of size 7'
 and 'Finite Field of size 5'
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13739>
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