#15369: IntegerVectors/FreeModules/AdditiveAbelianGroup of dimension 1 do not
accept 5 as input and expect [5]
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_review
Type: | Milestone: sage-5.13
defect | Resolution:
Priority: major | Merged in:
Component: | Reviewers:
combinatorics | Work issues:
Keywords: | Commit:
Authors: | 7df421a36ad515f6b2c3cf9178dbcccfb05161c8
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
u/ncohen/15369 |
Dependencies: |
-------------------------+-------------------------------------------------
Comment (by nbruin):
Replying to [comment:5 ncohen]:
> > I would prefer to always require lists, since that is what you need in
general.
>
> Come on Volker. I want to create `Z/5Z`, and you think more natural to
input lists of size 1 than integers ?
That's not what you're asking sage to do. You're asking for a finite
abelian group, written additively, that happens to be cyclic of order 5.
If you know your group is going to be cyclic, you'd probably be better off
asking for a cyclic group explicitly.
So I'd agree with Volker that lists are more natural here. At the same
time you're asking for conversion, which is supposed to make a best
effort, so adding a special case wouldn't be out of the question, even if
it's an ugly special case.
--
Ticket URL: <http://trac.sagemath.org/ticket/15369#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.