[issue9957] SpooledTemporayFile.truncate should take size parameter

2012-10-06 Thread R. David Murray
R. David Murray added the comment: I have made the doc changes. -- nosy: +r.david.murray resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue9957] SpooledTemporayFile.truncate should take size parameter

2012-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 63c3a3f28b42 by R David Murray in branch '2.7': #9957: document that SpooledTemporaryFile.truncate does not take size arg http://hg.python.org/cpython/rev/63c3a3f28b42 New changeset 145480af0d78 by R David Murray in branch '3.2': #9957: document tha

[issue9957] SpooledTemporayFile.truncate should take size parameter

2012-10-01 Thread Wael Al Jishi
Wael Al Jishi added the comment: Shouldn't this issue be closed, or is there more to be done? -- nosy: +Wael.Al.Jishi ___ Python tracker ___ __

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a6911930bad by Antoine Pitrou in branch 'default': Issue #9957: SpooledTemporaryFile.truncate() now accepts an optional size parameter, as other file-like objects. http://hg.python.org/cpython/rev/5a6911930bad -- nosy: +python-dev __

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed, thank you. By the way, Ryan, we now use Mercurial for developing, the Subversion repository is obsolete (see the devguide for more info). -- ___ Python tracker

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-25 Thread Éric Araujo
Éric Araujo added the comment: Okay, then stable branches need a doc/docstring patch to remove the statement that SpooledTemporaryFile “operates exactly as TemporaryFile does”. Ryan, would you like to do that patch too? Antoine, will you commit? -- _

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- versions: -Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks ok to me as well. I think this is a new feature, so 3.3-only IMHO. -- nosy: +pitrou ___ Python tracker ___ ___

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-24 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good to me, but I’d like another review. -- nosy: +ncoghlan type: feature request -> behavior versions: +Python 2.7, Python 3.3 ___ Python tracker

[issue9957] SpooledTemporayFile.truncate should take size parameter

2010-09-27 Thread Ryan Kelly
Changes by Ryan Kelly : Removed file: http://bugs.python.org/file19027/spooledtemporaryfile_truncate.patch ___ Python tracker ___ ___ Python-b

[issue9957] SpooledTemporayFile.truncate should take size parameter

2010-09-27 Thread Ryan Kelly
Ryan Kelly added the comment: I went looking for places to update the documentation but the description of SpooledTemporaryFile doesn't go into any detail of its methods, so I haven't added anything. New patch fixes some whitespace issues. I'd like to argue that this is a bug, since SpooledT

[issue9957] SpooledTemporayFile.truncate should take size parameter

2010-09-27 Thread Éric Araujo
Éric Araujo added the comment: Thank you for the report and patch. Not sure if this a bug or a new feature. Patch looks good, thanks for including a test too!. Can you also edit the documentation? (There are very minor whitespace nits in the patch, but I leave it to Georg to fix them or ig

[issue9957] SpooledTemporayFile.truncate should take size parameter

2010-09-27 Thread Ned Deily
Changes by Ned Deily : -- nosy: +georg.brandl stage: -> patch review type: behavior -> feature request versions: +Python 3.2 ___ Python tracker ___ __

[issue9957] SpooledTemporayFile.truncate should take size parameter

2010-09-26 Thread Ryan Kelly
New submission from Ryan Kelly : Both file.truncate() and StringIO.truncate() accept an optional "size" parameter to truncate the file to a specific size. SpooledTemporaryFile should accept a similar parameter and pass it on. The only tricky part is that truncate can potentially increase the