[issue9957] SpooledTemporayFile.truncate should take size parameter

Ryan Kelly report at bugs.python.org
Mon Sep 27 23:42:32 CEST 2010


Ryan Kelly <ryan at 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 <report at bugs.python.org>
<http://bugs.python.org/issue9957>
_______________________________________


More information about the Python-bugs-list mailing list