[issue10180] File objects should not pickleable
Antoine Pitrou
report at bugs.python.org
Sat Oct 23 21:41:47 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> The patch modifies _io.TextIOWrapper, but not _pyio.TextIOWrapper. Is
> there a reason?
Yes, two of them:
- modifying _pyio.Buffered* is enough to trigger the TypeError
- _pyio.StringIO inherits from TextIOWrapper, and it must be pickleable
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10180>
_______________________________________
More information about the Python-bugs-list
mailing list