diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-10 17:41:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-10 17:41:19 (GMT) |
commit | b070d73ff20df210eb41e3e5104ba6c355d9584e (patch) | |
tree | c44d9271c15aff1dab742ab44b14a9420313c33d /Python/pythonrun.c | |
parent | c20658249da47408c2d2455de87d7e70445cf3f0 (diff) | |
download | cpython-b070d73ff20df210eb41e3e5104ba6c355d9584e.zip cpython-b070d73ff20df210eb41e3e5104ba6c355d9584e.tar.gz cpython-b070d73ff20df210eb41e3e5104ba6c355d9584e.tar.bz2 |
[3.11] gh-50644: Forbid pickling of codecs streams (GH-109180) (GH-109232)
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