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

Add __getstate__ / __setstate__ method to dim to fix RecursionError #4582

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

jonmmease
Copy link
Collaborator

Closes #4581

The Recursion error was being caused by bouncing between the __dir__ and __getattr__ methods while unpickling. This adds __getstate__/__setstate__ methods to explicitly implement pickling.

@philippjfr
Copy link
Member

Thanks, looks good.

@philippjfr philippjfr merged commit 5798606 into master Sep 1, 2020
@philippjfr philippjfr deleted the dim_serialize branch April 25, 2022 14:39
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

Successfully merging this pull request may close these issues.

unpickling dim object causes RecursionError
2 participants