[sage-devel] Trac #8276: The one of MatrixSpace can be changed !

2010-02-15 Thread Florent Hivert
Hi there, I have a slightly stupid question ! First of all consider the following behavior (sage 4.3.2): sage: A = MatrixSpace(ZZ, 3) sage: A.one() [1 0 0] [0 1 0] [0 0 1] sage: A.one()[1,2] = 1 sage: A.one() [1 0 0] [0 1 1] [0 0 1] This is definitely bad. It happens because one is

Re: [sage-devel] Trac #8276: The one of MatrixSpace can be changed !

2010-02-15 Thread William Stein
On Mon, Feb 15, 2010 at 1:19 PM, Florent Hivert florent.hiv...@univ-rouen.fr wrote:      Hi there, I have a slightly stupid question ! First of all consider the following behavior (sage 4.3.2): sage: A = MatrixSpace(ZZ, 3) sage: A.one() [1 0 0] [0 1 0] [0 0 1] sage: A.one()[1,2] = 1