Re: [sage-devel] Change ring from GF(2) to ZZ

2012-04-17 Thread John Cremona
On 17 April 2012 08:15, P Purkayastha wrote: > 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) # Thi

[sage-devel] Change ring from GF(2) to ZZ

2012-04-17 Thread P Purkayastha
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,