#4419: [with patch, needs review] conversion of Permutations to GAP not
implemented
---------------------------+------------------------------------------------
 Reporter:  mhansen        |        Owner:  mhansen 
     Type:  defect         |       Status:  new     
 Priority:  minor          |    Milestone:  sage-3.2
Component:  combinatorics  |   Resolution:          
 Keywords:                 |  
---------------------------+------------------------------------------------
Comment (by wdj):

 I don't see how this fixes the original problem. I get this:

 {{{
 sage: p = gap(Permutation('(1,2,3)'))
 sage: q = gap(Permutation('()'))
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)
 <snip>


 ValueError: invalid literal for int() with base 10: ''
 }}}

 and this:

 {{{
 sage: q = gap(Permutation(()))
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 <snip>

 TypeError: not enough arguments for format string
 }}}

 It seems to me you want Permutation to work like
 PermutationGroupElement does here:
 {{{
 sage: p = gap(PermutationGroupElement('(1,2,3)'))
 sage: q = gap(PermutationGroupElement('()'))
 sage: gap.Group([p, q])
 Group( [ (1,2,3), () ] )
 sage: gap.Group([p]) == gap.Group([p, q])
 True
 }}}
 Is that correct?

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