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
Serialize methods and closures #4551
Comments
Yes, there is. Since IPython (mostly) just uses pickle, |
Great! Thanks for the pointer @minrk . A |
I'll assign this issue to me, so that I remember to make that use_dill entry point |
PR #4552 lets you do |
@minrk: awesome. |
What remains to be done on this? |
Nothing, just waiting for someone to sign off on #4552. |
@minrk: I was thinking this also might be useful to you guys. Use http://stackoverflow.com/questions/427453/how-can-i-get-the-source-code-of-a-python-function/21339166#21339166 |
IPython+Pickle can't serialize class methods.
IPython+Pickle can't serialze closures
The
dill
project (CC @mmckerns) can serialize code in both of these cases. Is there a way to leveragedill
here?One somewhat hacky option would be to fall back on
pickle
rather thancPickle
in case of failure. Dill is able to register its serialization routines with the pure Python implementation.The text was updated successfully, but these errors were encountered: