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

Can't load from pickle #2

Closed
adaldo opened this issue Dec 4, 2017 · 1 comment
Closed

Can't load from pickle #2

adaldo opened this issue Dec 4, 2017 · 1 comment

Comments

@adaldo
Copy link

adaldo commented Dec 4, 2017

I have an AttributeError when I try to load a FrozenMultiset with pickle.load.
Namely, this code raises an AttributeError on line 118 of multiset.py when trying to access the _elements attribute.

import pickle as pk
import multiset as ms

fms = ms.FrozenMultiset("aabcd")
    
with open("my_file","w") as my_file:
    pk.dump(fms, my_file)

with open("my_file", "r") as my_file:
    fms_copy = pk.load(my_file)
@wheerd wheerd closed this as completed in 976dbc3 Dec 5, 2017
@wheerd
Copy link
Owner

wheerd commented Dec 5, 2017

Version 2.0.3 fixes this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants