diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-10-02 14:55:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 14:55:52 (GMT) |
commit | 3e1c9e8264ad9acfef60b3aa9b3aa59bee5becca (patch) | |
tree | ca401639107a9fea3e961cb97d27f2ea503abe87 /Python/pythonrun.c | |
parent | be8255ad8c3af2ccd452cfdfae10bd72e966cb25 (diff) | |
download | cpython-3e1c9e8264ad9acfef60b3aa9b3aa59bee5becca.zip cpython-3e1c9e8264ad9acfef60b3aa9b3aa59bee5becca.tar.gz cpython-3e1c9e8264ad9acfef60b3aa9b3aa59bee5becca.tar.bz2 |
[3.12] gh-50644: Forbid pickling of codecs streams (GH-109180) (#109231)
gh-50644: Forbid pickling of codecs streams (GH-109180)
Attempts to pickle or create a shallow or deep copy of codecs streams
now raise a TypeError.
Previously, copying failed with a RecursionError, while pickling
produced wrong results that eventually caused unpickling to fail with
a RecursionError.
(cherry picked from commit d6892c2b9263b39ea1c7905667942914b6a24b2c)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions