#4569: problems with the Permutation constructor function
---------------------------+------------------------------------------------
 Reporter:  saliola        |       Owner:  saliola   
     Type:  defect         |      Status:  new       
 Priority:  minor          |   Milestone:  sage-3.2.1
Component:  combinatorics  |    Keywords:            
---------------------------+------------------------------------------------
 wdj pointed out in the comments to #4419:

 {{{
 {{{
 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
 }}}
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4569>
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