The whole 0 vs. 1 based permutations (Python vs. Matlab :-) is always 
confusing. And there is good reason and history in both conventions, so we 
should IMHO accept that we'll have to live with it. Its not something that 
can be solved satisfactorily by trying to guess the user's intentions, you 
can never say for sure if thats a 0-based permutation that just doesn't act 
on 0.

So how about making it explicit, have separate Permutation and Permutation0 
(instead of tuple vs list). They can share most of the backend, its just a 
slightly different set that they operate on. In Code, you just call sigma = 
Permutation0(sigma) on user input in the beginning to convert it to your 
desired presentation if you depend on the actual integers.

-- 
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/d/optout.

Reply via email to