Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): support unpickling older pickles
The changes to pickling in 6a1c295 means that in sympy>=1.9 Symbols are pickled using __getnewargs_ex__ rather than __getstate__/__setstate__. This breaks unpickling of pickles created with sympy<1.9 because those pickle files still need to use __setstate__ when being unpickled. This commit adds back the __setstate__ method to Symbol although it should only be used when unpickling pickles created in older SymPy versions.
- Loading branch information