mirror of
https://github.com/python/cpython.git
synced 2025-11-17 09:30:10 +00:00
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.
This commit is contained in:
parent
71b6e2602c
commit
d6892c2b92
3 changed files with 95 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
Attempts to pickle or create a shallow or deep copy of :mod:`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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue