-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
dumping functions does not store dependencies #52
Comments
Hi Hugo. The way Interestingly, Is this answer sufficient for what you were looking for? Or is this a subtle feature request, or otherwise? It's an interesting, and feasible idea to try to find the global dependencies, and serialize them with the function object. It's not been on my radar for functions. |
@mmckerns, I make all my feature requests explicitly =) and submit PRs if I can. Right now I'm just exploring the various ways one could do remote execution of functions, and how general it could be. I'm also entertaining ideas like maintaining a directory that is rsynced with remotes, and only allowing function execution from things in the source code. How would you find the feasible global deps? would you parse the function code to find out what it uses? |
I do it already in certain cases... and have a few options. There are a few examples of this in |
It will work if |
True. So the question is, should there be an asymmetry between "in-module" behavior and "in-interpreter" behavior? I tend to say no. It's just not a case I'd considered before. @matsjoyce: what do you think? |
It all gets very complicated when we question the design of pickle, doesn't it? I think it depends on what dill is trying to do. I can think of several options:
I think that 1 fits with the |
I think I think that |
#1 is asking for a changes that tend toward treating |
Well, part of me (the part which likes the fact that a method is just a function with one bound argument) likes the idea that |
I agree, and like it for the same reason. However, I think it seriously breaks what is currently a fairly consistent paradigm in This should then re-close this issue. Agreed? |
The problem with treating |
Closing this again. For now, I'm filing it away as a nice idea. |
If I use this script to serialize something:
And load it with:
I get
What is the intention for how the user should handle this?
Thanks
The text was updated successfully, but these errors were encountered: