bpo-36424: Add support for pickling frozen dataclasses with __slots__ by ZackerySpytz · Pull Request #22459 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Conversation
Allow to pickle and unpickle frozen dataclasses that have __slots__. Co-Authored-By: Claudiu Popa <pcmanticore@gmail.com>
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).
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.
@Kobzol this was fixed (see issue) but hasn't been backported to 3.9; so one option is to wait for 3.10 release.
drhagen
mannequin
mentioned this pull request
Thanks, this was fixed in #25786
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters