On 13 Mai, 15:04, SherjilOzair <sherjiloz...@gmail.com> wrote: > I was thinking of making ImmutableMatrix derive from MutableMatrix > class, overriding its methods like __setitem__ which change the data > of the class, and functions like __hash__. > This might involve making Immutable counterparts of all DS classes, > like ImmutableDOKMatrix, etc. However, there would be do code > duplication.
This should be easy to avoid using a suitable base class. Vinzent -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.