On Thu, 1 Nov 2007, William Stein wrote:

> Applying the permutation (1,2,3)(4,5) to [0,1,2,3,4]
> should either move the entry in position 1 (which happens
> to be called "0") to position 2, so that the output looks like
>   [*,0,*,*,*]
> or if we do some weird 1-based thing, it would always
> fix the first entry, then send the entry in position 1 to
> position 2 and look like:
>   [0,*,1,*,*]


Also, forget about the zero.  I never look at the content of the lists, so 
expecting it to not move zero just doesn't make sense.  This works on strings, 
too:

sage: g('abcde')
'bcaed'

If you still disagree, I suggest backing out the patch and waiting for Jason 
Grout, who requested the feature, to clarify his intent.  (OTOH, backing it out 
isn't really necessary -- the patch only adds functionality)


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to