One issue is code duplication, by making two classes. However, it can be noted that python itself has such classes. set and frozenset for instance. and the standard library has Set and ImmutableSet.
A small inelegant workaround would be a flag in the class is_immutable, but that won't solve all problems that a separate ImmutableMatrix class would. We can consider making one of the classes (ImmutableMatrix or MutableMatrix) one of the parents of the other, with overloaded functions, to reduce code duplication. class MutableMatrix(Object): ... Full set of functions class ImmutableMatrix(Basic, MutableMatrix): ... Overloaded functions, with error such as "Operation not supported by ImmutableMatrix" -- 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.
