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

dataclasses fail to unpickle when there is an object cycle with a custom __hash__ function #125004

Open
charles-cooper opened this issue Oct 5, 2024 · 2 comments · May be fixed by #125005
Open
Labels
topic-dataclasses type-bug An unexpected behavior, bug, or error

Comments

@charles-cooper
Copy link

charles-cooper commented Oct 5, 2024

extracting the dataclasses issue mentioned in #124937 (comment) into its own issue

Linked PRs

@gpshead
Copy link
Member

gpshead commented Oct 5, 2024

Could you also look into how the attrs library handles this situation or not? (and file an issue there if not)

@charles-cooper
Copy link
Author

charles-cooper commented Oct 5, 2024

Could you also look into how the attrs library handles this situation or not? (and file an issue there if not)

I did a quick search through the codebase and found this python-attrs/attrs#613, which seems vaguely related but likely not the same issue. I'm not sure I have time to reproduce+triage the issue in attrs but maybe I can make a stub issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-dataclasses type-bug An unexpected behavior, bug, or error
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants