On Fri, May 13, 2011 at 11:22 PM, Vinzent Steinberg < [email protected]> wrote:
> On 13 Mai, 15:04, SherjilOzair <[email protected]> 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 > Sorry. By 'do' I meant 'no'. There would be no code duplication. Or are you talking about something else ? > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
