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

refactor: simplify attrs & fix its pickability (for e.g. dask.distributed) #3383

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

pfackeldey
Copy link
Collaborator

This PR makes .attrs properly pickable again by getting rid of the weak reference (without loosing the intended behavior introduced in #3344).

Without this PR we'll break any usage with dask.distributed as it needs to pickle all objects (including .attrs) for scheduling.
Thus, we should get this PR in before a new awkward-array release.

(and also I think it's much cleaner now :-) )

Copy link
Collaborator

@ianna ianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pfackeldey - Thanks, it looks great! Indeed, the code is cleaner.

@ianna ianna merged commit b18ca47 into main Jan 24, 2025
39 checks passed
@ianna ianna deleted the pfackeldey/fix_attrs_pickability branch January 24, 2025 16:17
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.

2 participants