-
Notifications
You must be signed in to change notification settings - Fork 16
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
Can't export class with decorated method #13
Comments
which os ? and did You notice the Readme : under Windows classes and functions in the main context can not be pickled, You need to put the decorated Classes and functions into another module. In general (especially for windows) , the main() program should not have anything but the main function, the real thing should happen in the modules. I am also used to put all settings or configurations in a different file - so all processes or threads can access them (and also to keep them in one place together, not to forget typing hints and name completion in Your favorite editor) please check and let me know |
OS Windows 10.0.17134.0 |
ok, I think thats not a big downside. however, it is an issue of the "wrapt" package. |
it is indeed an issue for wrapt, see : https://wrapt.readthedocs.io/en/latest/changes.html
I will check if I can monkey-patch it. another note on Your code : see : https://wrapt.readthedocs.io/en/latest/decorators.html#decorating-static-methods so to wrap it up :
|
I tried to save class definition with one decorated method using dill and got the following error:
NotImplementedError: object proxy must define __reduce_ex__()
Traceback
Sample code:
The text was updated successfully, but these errors were encountered: