[issue1474680] pickling files works with protocol=2.

Antoine Pitrou report at bugs.python.org
Mon Jun 29 13:48:34 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Pickling a file is tricky. You can't just pickle the construction
parameters, you also need to save (and restore) the whole buffering
state. I'm not sure a half-working pickle solution would make a good
service to the user.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1474680>
_______________________________________


More information about the Python-bugs-list mailing list