Skip to content

Conversation

@ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Sep 30, 2020

Allow to pickle and unpickle frozen dataclasses that have
__slots__.

Co-Authored-By: Claudiu Popa pcmanticore@gmail.com

https://bugs.python.org/issue36424

Allow to pickle and unpickle frozen dataclasses that have
__slots__.

Co-Authored-By: Claudiu Popa <pcmanticore@gmail.com>
@ZackerySpytz
Copy link
Contributor Author

Some of the added code does not adhere to PEP 8 w.r.t. line length -- that is for symmetry with the adjacent _create_fn() calls (which themselves don't follow PEP 8).

@Kobzol
Copy link

Kobzol commented Jul 9, 2021

What's the status of this PR? We want to send frozen dataclasses to multiple processes in Keras multi-GPU training and the inability to (un)pickle them severely limits this use case.

@akulakov
Copy link
Contributor

akulakov commented Sep 9, 2021

@Kobzol this was fixed (see issue) but hasn't been backported to 3.9; so one option is to wait for 3.10 release.

@hauntsaninja
Copy link
Contributor

Thanks, this was fixed in #25786

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants