[issue36424] Pickle fails on frozen dataclass that has slots

2021-10-13 Thread David Hagen
David Hagen added the comment: Because the implementation in GH-25786 relies on the new `dataclass(slots=True)` feature (i.e. it does not work if the slots are specified with `__slots__`), I don't think this can be trivially backported to versions before 3.10. --

[issue36424] Pickle fails on frozen dataclass that has slots

2021-09-09 Thread Andrei Kulakov
Andrei Kulakov added the comment: This actually can't be closed yet as the fix was not backported to 3.9 -- ___ Python tracker ___

[issue36424] Pickle fails on frozen dataclass that has slots

2021-08-05 Thread Andrei Kulakov
Andrei Kulakov added the comment: This was fixed in https://github.com/python/cpython/pull/25786 , and so can be closed. -- nosy: +andrei.avk ___ Python tracker ___

[issue36424] Pickle fails on frozen dataclass that has slots

2020-09-29 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 6.0 -> 7.0 pull_requests: +21485 pull_request: https://github.com/python/cpython/pull/22459 ___ Python tracker ___

[issue36424] Pickle fails on frozen dataclass that has slots

2019-11-19 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36424] Pickle fails on frozen dataclass that has slots

2019-11-19 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +16750 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17254 ___ Python tracker ___

[issue36424] Pickle fails on frozen dataclass that has slots

2019-04-25 Thread Alessandro Cucci
Change by Alessandro Cucci : -- nosy: +acucci ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36424] Pickle fails on frozen dataclass that has slots

2019-04-25 Thread Josh Rosenberg
Change by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36424] Pickle fails on frozen dataclass that has slots

2019-03-25 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36424] Pickle fails on frozen dataclass that has slots

2019-03-25 Thread Jacques Gaudin
Change by Jacques Gaudin : -- nosy: +jagaudin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36424] Pickle fails on frozen dataclass that has slots

2019-03-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36424] Pickle fails on frozen dataclass that has slots

2019-03-25 Thread David Hagen
New submission from David Hagen : If a dataclass is `frozen` and has `__slots__`, then unpickling an instance of it fails because the default behavior is to use `setattr` which `frozen` does not allow. ``` import pickle from dataclasses import dataclass @dataclass(frozen=True) class A: