Hi, The following piece of code seems to error out: sage: C = BinaryGolayCode() sage: c = C[1]; c.change_ring(ZZ) # This works (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1) sage: c = C[20]; c.change_ring(ZZ) # This gives error ... TypeError: element (= [0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1]) is not in free module
The question is why does it error out on trying to change ring from GF(2) to ZZ? I suppose it should be always possible to coerce from GF(p) to ZZ for p prime. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org