On 2013-11-07, Nathann Cohen <nathann.co...@gmail.com> wrote: > This, however, is beyond me. And I'm stuck again :-/ > > sage: G = AdditiveAbelianGroup([7,23]); G > Additive abelian group isomorphic to Z/161 > sage: print G[:5] > [(0, 0), (3, 10), (6, 20), (2, 7), (5, 17)] > sage: G(0) > (0, 0) > sage: G(1) > TypeError: can't initialize vector from nonzero non-list > sage: G((0,0)) try G(vector(0,0)), etc. This works...
> TypeError: length of v must be at most the number of rows of self > sage: G((0,1)) > TypeError: length of v must be at most the number of rows of self > > 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 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/groups/opt_out.