Here's a ticket with patch: http://trac.sagemath.org/sage_trac/ticket/14845

--Mike
--Mike


On Mon, Jul 1, 2013 at 1:14 PM, Nathann Cohen <nathann.co...@gmail.com> wrote:
> (#14772 is a Permutations patch currently waiting for a review which touches
> a lot of things. Sooooooo if you want to patch it somehow, you will have to
> give it a look)
>
> Nathann
>
>
>
> On Monday, July 1, 2013 2:11:10 AM UTC+2, Mike Hansen wrote:
>>
>> A better workaround is something like:
>>
>> sage: P = PermutationGroup([(0,1)], domain=[0,1]); P
>> Permutation Group with generators [(0,1)]
>> sage: P.domain()
>> {0, 1}
>> sage: P.list()
>> [(), (0,1)]
>>
>> --Mike
>> --Mike
>>
>>
>> On Mon, Jul 1, 2013 at 12:28 AM, Rob Beezer <goo...@beezer.cotse.net>
>> wrote:
>> > All,
>> >
>> > A power user sent me something akin to:
>> >
>> > sage: PermutationGroup([(1,2)])
>> > Permutation Group with generators [(1,2)]
>> >
>> > sage: PermutationGroup([('a','b')])
>> > Permutation Group with generators [('a','b')]
>> >
>> > sage: PermutationGroup([(0,1)])
>> >
>> > ---------------------------------------------------------------------------
>> > ValueError                                Traceback (most recent call
>> > last)
>> > <snip>
>> > ValueError: Invalid permutation vector: [(0, 1)]
>> >
>> > We expanded the possibilities for symbol sets, and it would be nice if
>> > this
>> > 0-index case was picked up properly.  I could not find a ticket
>> > anywhere,
>> > and will make one unless I hear otherwise that this is known (or "needs
>> > review"!).
>> >
>> > For the record, here's a reasonable workaround:
>> >
>> > sage: S = SymmetricGroup([0,1])
>> > sage: S.subgroup([(0,1)])
>> > Subgroup of (Symmetric group of order 2! as a permutation group)
>> > generated
>> > by [(0,1)]
>> >
>> > Rob
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "sage-devel" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to sage-devel+...@googlegroups.com.
>> > To post to this group, send email to sage-...@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/sage-devel.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to