-
-
Notifications
You must be signed in to change notification settings - Fork 748
Avoid list mutation in pickle_loads #4653
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
Conversation
|
|
||
| new = [] | ||
| memoryviews = map(memoryview, buffers) | ||
| for writeable, mv in zip(header["writeable"], memoryviews): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be an issue if header["writeable"] is (), which came up in another issue ( #4645 (comment) )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is focused on removing the list mutation. I recommend that we handle the not header["writeable"] issue separately if that's ok.
…-mutation-pickle-loads
|
can confirm this fixes the specific regression affecting us (no idea about the broader impact though) |
…tributed into avoid-mutation-pickle-loads
|
Merging on passed tests. @jrbourbeau can we schedule a bugfix release for this Friday at the latest? I'll resolve the writeable thing too. |
|
Yeah I was trying to prod CI last night, but I guess it still wasn't passing unfortunately (not that I think the failure is related) |
|
See dask/community#144 for the bugfix release |
Fixes #4625
black distributed/flake8 distributed