On Thu, 18 Mar 2021 at 06:26, Momchil Peychev <[email protected]> wrote:
>
> I have the following issue: when I try to create symbols (and by extension
> expressions) in different processes, SymPy somehow does not detect that the
> symbols are the same even though they have the same name and assumptions.
Maybe there's a problem with pickling and unpickling the symbol.
Working in the same process creating two different symbols returns the
exact same object:
In [5]: x1 = Symbol('x')
In [6]: x2 = Symbol('x')
In [7]: x1 is x2
Out[7]: True
Perhaps pickling creates a distinct object that does not then compare
equal in some way because the equality testing uses is for symbols.
I'm not sure what causes this but I think it's a bug so can you open
an issue on GitHub?
Oscar
--
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/CAHVvXxRJ0vgHRO3YMO857L3uEwx1sNx5bExY0E-LhECfcncfxQ%40mail.gmail.com.