#13742: No Permutation should be created that its method cannot handle
---------------------------------+------------------------------------------
       Reporter:  ncohen         |         Owner:  sage-combinat
           Type:  defect         |        Status:  needs_work   
       Priority:  major          |     Milestone:  sage-5.6     
      Component:  combinatorics  |    Resolution:               
       Keywords:                 |   Work issues:               
Report Upstream:  N/A            |     Reviewers:               
        Authors:  Nathann Cohen  |     Merged in:               
   Dependencies:                 |      Stopgaps:               
---------------------------------+------------------------------------------

Comment (by ncohen):

 Well, we can check that if the input is a list, then it has size n, can't
 we ? With the patch we already check that no element appears twice. I
 updated the patch again, and this is now checked too.

 Note that this made method ``from_major_code`` raise Exceptions, as it
 builds things like Permutation([9]). I added `check_input = False` inside
 of it, but it still checks the Permutation is returns. I also added a
 warning.

 Nathann

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