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+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