mirror of
https://github.com/python/cpython.git
synced 2026-05-10 22:50:18 -04:00
973e2d3e29
In the C implementation, remove __reduce__ and __reduce_ex__ methods
that always raise TypeError and restore __getstate__ methods that always
raise TypeErrori.
This restores fine details of the pre-3.12 behavior and unifies
both implementations.
(cherry picked from commit e9253ebf74)