-
Notifications
You must be signed in to change notification settings - Fork 176
Issues pickling sympy.Function('f') #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Interesting. It looks to me like what's happening here is that As a heads up, I'm travelling at JupyterCon this week, so I may not have time to look at this carefully until early next week some time. |
No Expr is static. Only The code is hereabouts. There's no rush on this. I think we will just skip the test in SymPy, as it apparently hasn't worked in some time. I also don't really know if this affects actual behavior for the unpickled object, beyond memory leaking the recreated methods. Our pickling tests are rigorous and check every attribute, but as far as I can tell stuff like |
This is broken in cloudpickle. See the upstream issue cloudpipe/cloudpickle#190. Fixes sympy#15116.
Following up on this. Actually, However, since #246, So now I get: In [1]: import cloudpickle
...: import sympy
...: import types
...: f = sympy.Function('f')
...: f1 = cloudpickle.loads(cloudpickle.dumps(f))
...: f1 is f
Out[1]: True @asmeurer you should now be able to unskip the test AFAICT. |
We have a test failure in our SymPy test suite from cloudpickle. I have bisected it to the cloudpickle commit aec80d2
The failure is described at sympy/sympy#15116
The basic failure is this:
The SymPy test tests that all the attributes are the same, and fails because cloudpickle creates new instances of the Expr methods.
I'm not clear if this affects functionality or not.
CC @ssanderson
The text was updated successfully, but these errors were encountered: