Re: [sage-devel] immutability of vectors in submodules

2016-12-19 Thread Johan S . H . Rosenkilde
I reported this bug 1,5 years ago: https://groups.google.com/forum/#!topic/sage-devel/rvs5E6AEXVc Not to point fingers, but you said: "The behavior is bad but I would not call it a bug. You modified wrongly the vector." ;-) Back then you proposed to change the semantics such that a vectors' pare

[sage-devel] immutability of vectors in submodules

2016-12-19 Thread Vincent Delecroix
Dear all, I went into the following bug: it is possible to modify an entry of vector whose parent is a submodule of R^n. sage: V = VectorSpace(QQ, 3) sage: M = V.subspace([(1,0,0,),(0,1,0)]) sage: v = M() sage: v (0, 0, 0) sage: v[2] = 2 # bug sage: v (0, 0, 2) sage: v.parent() is M True I op