#11863: Bilinear Map
-----------------------------------+----------------------------------------
       Reporter:  annahaensch      |         Owner:  justin           
           Type:  enhancement      |        Status:  needs_info       
       Priority:  minor            |     Milestone:  sage-5.8         
      Component:  quadratic forms  |    Resolution:                   
       Keywords:                   |   Work issues:                   
Report Upstream:  N/A              |     Reviewers:  Kannappan Sampath
        Authors:                   |     Merged in:                   
   Dependencies:                   |      Stopgaps:                   
-----------------------------------+----------------------------------------

Comment (by chapoton):

 You should raise TypeError and not return them.
 {{{
 raise TypeError("Bilinear form can only be evaluated on vectors with
 length " + str(self.dim()) + ".")
 }}}
 and
 {{{
 raise TypeError("Not defined for rings of characteristic 2.")
 }}}

 There should also be a doctest for the second raise error.

 Please look at http://www.sagemath.org/doc/developer/conventions.html for
 the syntax of INPUT and OUTPUT fields (no indentation needed)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11863#comment:8>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to