symbolic icon indicating copy to clipboard operation
symbolic copied to clipboard

Replace python is_A to isinstance(*, A)

Open latot opened this issue 9 years ago • 1 comments

Hi, well, some times octave/octsympy/python send weird things, and i think this can help to normalize part of this, its when for some reason octsympy try do something like this Matrix().is_Symbol, sadly i don't know how reproduce it, only happen, or want a way to reproduce it?

Thx. Cya.

latot avatar Oct 21 '16 21:10 latot

hmmm, None is an annoying special case where calling is_Symbol is an error, because S(None) is just None and not a Sympy object.

Could be a good to have a concrete example.

Maybe something like solve with equations where Sympy cannot find a solution. IIRC, that gives a less-than-ideal error message, possibly related.

cbm755 avatar Oct 30 '16 07:10 cbm755