Ryan Kelly <r...@rfk.id.au> 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 SpooledTemporaryFile is documented as "operates exactly as TemporaryFile() does", and TemporaryFile.truncate accepts a "size" parameter. ---------- Added file: http://bugs.python.org/file19032/spooledtemporaryfile_truncate.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9957> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com