[issue1474680] pickling files works with protocol=2.

2010-08-05 Thread Alexandre Vassalotti
Alexandre Vassalotti 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 -> closed versions: -Pyth

[issue1474680] pickling files works with protocol=2.

2010-08-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1474680] pickling files works with protocol=2.

2010-08-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5, Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue1474680] pickling files works with protocol=2.

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

[issue1474680] pickling files works with protocol=2.

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

[issue1474680] pickling files works with protocol=2.

2009-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti 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: +alexandre.vassalotti stage: -> needs

[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]> _ ___ Python-bugs-l