[New-bugs-announce] [issue10180] File objects should not pickleable

Antoine Pitrou report at bugs.python.org
Sat Oct 23 19:19:27 CEST 2010

New submission from Antoine Pitrou <pitrou at free.fr>:

In Python 3, pickle accepts to serialize a file object, but the result is nonsensical when unpickled. I think we should explicitly forbid pickling of FileIO, Buffered{Reader,Writer} and TextIOWrapper objects.

components: IO, Library (Lib)
messages: 119450
nosy: alexandre.vassalotti, amaury.forgeotdarc, benjamin.peterson, pitrou
priority: normal
severity: normal
status: open
title: File objects should not pickleable
type: behavior
versions: Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list