#16261: Default behaviour of AdditiveAbelianGroup(a_tuple)
----------------------------+---------------------------------
Reporter: ncohen | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.2
Component: group theory | Keywords:
Merged in: | Authors: Nathann Cohen
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
----------------------------+---------------------------------
This ticket follows the conversation on
https://groups.google.com/forum/#!topic/sage-support/yexpjig9BSg
{{{
sage: H = AdditiveAbelianGroup([0,2])
sage: H((2,0))
(0, 0)
sage: H(vector((2,0)))
(2, 0)
sage: H((1,0)).order()
2
sage: H(vector((1,0))).order()
+Infinity
}}}
With this branch there is no need to wrap a tuple into a vector to avoid
the "if isinstance(x,(tuple,list))" and what should be the default
behaviour IS the default behaviour. And it barely breaks doctests once one
replaced the old {{{[G([1,2])}}} by
{{{G.linear_combination_of_smith_form_gens([1,2])}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16261>
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/d/optout.