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

Something is wrong with munch and pickle #30

Closed
harlowja opened this issue Apr 10, 2018 · 3 comments
Closed

Something is wrong with munch and pickle #30

harlowja opened this issue Apr 10, 2018 · 3 comments
Assignees

Comments

@harlowja
Copy link

harlowja commented Apr 10, 2018

An easy test case that shows something is wrong here.

>>> m = {'a': {'b': 'c'}}
>>> m = munch.munchify(m)
>>> m
Munch({'a': Munch({'b': 'c'})})
>>> e = munch.munchify(m)
>>> pickle.loads(pickle.dumps(e))
Munch({'a': {'b': 'c'}})

I did not expect to lose information when using pickle; but it appears it does.

@vmalloc
Copy link

vmalloc commented Apr 11, 2018

@sayag11 I'm already on it. A fix will be available soon

@vmalloc vmalloc assigned vmalloc and unassigned alexdaInfinidat Apr 11, 2018
@vmalloc
Copy link

vmalloc commented Apr 11, 2018

Fixed and pushed v2.3.1. Should be available on Pypi soon.

@vmalloc
Copy link

vmalloc commented Apr 11, 2018

@harlowja thanks for reporting!

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

3 participants