On 02/12/2019 02:42, Oscar Benjamin wrote:
On Mon, 2 Dec 2019 at 01:59, JS S <[email protected]> wrote:
But what confuses me is this:

- ImmutableDenseMatrix is subclass of Expr
- ImmutableSparseMatrix is subclass of Basic, but not Expr.
- ImmutableDenseNDimArray is, unlike its Matrix counterpart, subclass of Basic 
but not Expr.
I don't think there is a good reason for the discrepancy here apart
from the fact that there is some confusion about what should subclass
from what. Another example is that Relational is a subclass of Expr
and that makes no sense at all.

Probably all of these should be Expr or none of them should.

--
Oscar

As a software developer (mainly in C) It seems to me that all big software projects have arbitrary inconsistencies buried deep in the code, but of course projects built with Python are transparent - you can see everything, warts and all. C++ lets a class inherit from more than one parent, but I sincerely hope Python will not do likewise!

David

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/ededd430-7280-d667-ddb9-3eaa241fd6f6%40dbailey.co.uk.

Reply via email to