#4581: Permutation constructor fails with PermutationGroupElement
---------------------------+------------------------------------------------
 Reporter:  saliola        |       Owner:  mhansen   
     Type:  defect         |      Status:  new       
 Priority:  major          |   Milestone:  sage-3.2.1
Component:  combinatorics  |    Keywords:            
---------------------------+------------------------------------------------
 Since PermutationGroupElement accepts Permutations:
 {{{
 sage: PermutationGroupElement(Permutation([2,1,3]))
 (1,2)
 }}}
 it would be good if the other direction worked as well:
 {{{
 sage: g = PermutationGroupElement([2,1,3])
 sage: g
 (1,2)
 sage: Permutation(g)
 ...
 ValueError: l must be a list
 }}}
 The following works:
 {{{
 sage: Permutation(g.list())
 [2, 1, 3]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4581>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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