Skip to content
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

[WIP] Allow module level type's __dicts__ to be saved #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matsjoyce
Copy link
Contributor

[WIP] Do not merge until #43 is resolved

A possible fix for #42. It suffers from similar issues to #41, as it pickles everything, but that could be fixed by a "clean" version of the type to compare against.

Python 3.4.1 (default, May 19 2014, 17:23:49) 
[GCC 4.9.0 20140507 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dill, abc, re, os, sys, imp
>>> a=abc.ABCMeta
>>> a.zzz=1
>>> dill.dump_session()
>>> 
========================Restart========================
Python 3.4.1 (default, May 19 2014, 17:23:49) 
[GCC 4.9.0 20140507 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dill
>>> dill.load_session()
>>> a.zzz
1
>>> 

Python 2.7.6 (default, Feb 26 2014, 12:07:17) 
[GCC 4.8.2 20140206 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dill, abc, re, os, sys, imp
>>> a=abc.ABCMeta
>>> a.zzz=1
>>> dill.dump_session()
>>> 
========================Restart========================
>>> import dill
>>> dill.load_session()
>>> a.zzz
1
>>>

@matsjoyce matsjoyce changed the title Allow module level type's __dicts__ to be saved [WIP] Allow module level type's __dicts__ to be saved Jun 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants