Re: [sage-devel] Zero as a symbol for a permutation group

2013-07-01 Thread Nathann Cohen
> This is exactly what the patch I posted does. >_< Yeah. Right. Just lost another occasion to keep quiet :-P Nathann -- 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 ema

Re: [sage-devel] Zero as a symbol for a permutation group

2013-07-01 Thread Mike Hansen
> Looks like the code that you > change does not come from the same patch, but it looks to me that if a > PermutationGroup handles both 1, ...,n and "a", "b", "c" as its > elements, then I expect that it should handle 0, 1, 2 as it handles > "a", "b", "c", that it to say probably with labels, and a

Re: [sage-devel] Zero as a symbol for a permutation group

2013-07-01 Thread Nathann Cohen
Hell !!! > Here's a ticket with patch: http://trac.sagemath.org/sage_trac/ticket/14845 H.. A long time ago I wrote a very nasty patch that prevented one from building a Permutation on any set which was not 1, ..., n because I got angry at the fact that many methods of Permutations

Re: [sage-devel] Zero as a symbol for a permutation group

2013-07-01 Thread Mike Hansen
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 wrote: > (#14772 is a Permutations patch currently waiting for a review which touches > a lot of things. Sooo if you want to patch it somehow, you will hav

Re: [sage-devel] Zero as a symbol for a permutation group

2013-07-01 Thread Nathann Cohen
(#14772 is a Permutations patch currently waiting for a review which touches a lot of things. Sooo 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

Re: [sage-devel] Zero as a symbol for a permutation group

2013-06-30 Thread Mike Hansen
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 wrote: > All, > > A power user sent me something ak

[sage-devel] Zero as a symbol for a permutation group

2013-06-30 Thread Rob Beezer
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)]) --