[docs] [issue8840] truncate() semantics changed in 3.1.2

Antoine Pitrou report at bugs.python.org
Sat May 29 13:56:20 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

How about reusing the documentation of legacy file objects:

“Truncate the file’s size. If the optional size argument is present, the file is truncated to (at most) that size. The size defaults to the current position. The current file position is not changed. Note that if a specified size exceeds the file’s current size, the result is platform-dependent: possibilities include that the file may remain unchanged, increase to the specified size as if zero-filled, or increase to the specified size with undefined new content.”

http://docs.python.org/library/stdtypes.html#file.truncate

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8840>
_______________________________________


More information about the docs mailing list