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

Properly fix unpickling recursion #427

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

alimanfoo
Copy link
Contributor

@alimanfoo alimanfoo commented Sep 17, 2024

This PR properly addresses the recursion problems originally encountered in #424 and attempted to fix in #425 but which then created a new problem in #426.

The original recursion issue was caused because during unpickling getattr(self, "__setstate__") is called if the object does not implement __setstate__. This is not something we want to pass through to the wrapped inner object, so this PR handles this case specifically and ensures an AttributeError is raised.

@alimanfoo alimanfoo merged commit f9e17f7 into master Sep 17, 2024
19 checks passed
@alimanfoo alimanfoo deleted the pickle-fix-alimanfoo-2024-09-17 branch September 17, 2024 10:22
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.

GenotypeArray is not pickled correctly ArrayWrapper and subclasses are not pickleable
1 participant