[issue1474680] pickling files works with protocol=2.

2010-08-05 Thread Alexandre Vassalotti
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 -

[issue1474680] pickling files works with protocol=2.

2010-08-04 Thread Terry J. Reedy
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 ___ ___

[issue1474680] pickling files works with protocol=2.

2010-08-04 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1474680 ___ ___

[issue1474680] pickling files works with protocol=2.

2010-05-09 Thread Éric Araujo
É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

[issue1474680] pickling files works with protocol=2.

2009-06-29 Thread Antoine Pitrou
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:

[issue1474680] pickling files works with protocol=2.

2009-06-28 Thread Alexandre Vassalotti
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:

[issue1474680] pickling files works with protocol=2.

2008-03-14 Thread Ralf Schmitt
Changes by Ralf Schmitt [EMAIL PROTECTED]: -- nosy: +schmir versions: +Python 2.5 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1474680 _ ___ Python-bugs-list