On 27/05/15 22:02, Volker Braun wrote:
IMHO the bug here is a lack of validation. Its perfectly fine to have mutable elements of a vector subspace, but y.__setitem__ should then check that the vector really is in the subspace or raise a ValueError. Of course it would almost always raise, so its not a particularly useful operation.
One alternative is to have something along the clonable arrays with v.clone() as u: u[1] = 3 u[2] = 6 # check here automatically as going out v + v Vincent -- 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/d/optout.