#9094: is_square and sqrt for polynomials and fraction fields
------------------------------------------------+---------------------------
   Reporter:  robertwb                          |       Owner:  AlexGhitza
       Type:  enhancement                       |      Status:  needs_work
   Priority:  major                             |   Milestone:  sage-4.5.1
  Component:  algebra                           |    Keywords:            
     Author:  Robert Bradshaw, Maarten Derickx  |    Upstream:  N/A       
   Reviewer:  John Cremona, Marco Streng        |      Merged:            
Work_issues:  documentation, double code        |  
------------------------------------------------+---------------------------

Comment(by mderickx):

 Catching a specific TypeError isn't possible apparently.

 {{{

 try:

     raise !TypeError("sqrt() got an unexpected keyword argument 'root'")

 except !TypeError("sqrt() got an unexpected keyword argument 'root'"):

     print "lol"

 }}}

 gives as output

 {{{

 || {{{[[BR]]Traceback (click to the left of this block for
 traceback)[[BR]]...[[BR]]TypeError: sqrt() got an unexpected keyword
 argument 'root'[[BR]]}}} ||


 }}}

 but a new version is on it's way wich just catches all typeerrors

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