You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 abc, dill
>>> abc.ABCMeta.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()
>>> abc.ABCMeta
<class 'abc.ABCMeta'>
>>> abc.ABCMeta.zzz
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: type object 'ABCMeta' has no attribute 'zzz'
Follow up for #41:
This is due to https://github.com/uqfoundation/dill/blob/master/dill/dill.py#L808-L813 not adding the
__dict__
attribute:>>> dill.dill._trace(True) >>> dill.dumps(abc.ABCMeta) T4: <class 'abc.ABCMeta'> b'\x80\x03cabc\nABCMeta\nq\x00.'
The text was updated successfully, but these errors were encountered: