Dear Oscar, Thank you for the reply.
I opened the issue here: https://github.com/sympy/sympy/issues/21121 and propose to move any further discussion there. Thanks, Momchil On Thursday, March 18, 2021 at 1:49:41 PM UTC+1 Oscar wrote: > 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/89d8765b-bd53-491e-9dba-0bc3097abfc2n%40googlegroups.com.
