Alexandre Vassalotti alexan...@peadrop.com added the comment:
Although it is tempting to fix this, it feels to much like a feature. I am
closing as won't fix because we don't add new features to 2.x.
--
resolution: - wont fix
stage: needs patch - committed/rejected
status: open -
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 2.5, Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1474680
___
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 2.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1474680
___
___
Éric Araujo mer...@netwok.org added the comment:
Antoine, I think the goal here is to disable pickling, not making it work.
Alexandre, is it ok for a class to define pickle magic methods just to raise an
exception? Doesn’t it break expectations?
One question hasn’t been answered: When did the
Antoine Pitrou pit...@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:
Alexandre Vassalotti alexan...@peadrop.com added the comment:
That seems easy to fix by adding a dummy __reduce__ method to file. My
only worry is this could break file subclasses which may have ad-hoc
mechanisms implemented for pickling files.
--
keywords: +patch
nosy:
Changes by Ralf Schmitt [EMAIL PROTECTED]:
--
nosy: +schmir
versions: +Python 2.5
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1474680
_
___
Python-bugs-list