Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 394 Bytes

2024-08-02-20-01-36.gh-issue-122559.2JlJr3.rst

File metadata and controls

6 lines (6 loc) · 394 Bytes

Remove :meth:`!__reduce__` and :meth:`!__reduce_ex__` methods that always raise :exc:`TypeError` in the C implementation of :class:`io.FileIO`, :class:`io.BufferedReader`, :class:`io.BufferedWriter` and :class:`io.BufferedRandom` and replace them with default :meth:`!__getstate__` methods that raise :exc:`!TypeError`. This restores fine details of behavior of Python 3.11 and older versions.