summaryrefslogtreecommitdiffstats
path: root/Doc/library/io.rst
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-03-21 02:50:46 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-03-21 02:50:46 (GMT)
commitfe0a41aae425c61364b79c18ca8321dffed3ac40 (patch)
treebf19237ec3d8058d4b22bbc02177435ac1a1ce43 /Doc/library/io.rst
parentc7d979f0221b4426fb2160f0960a61c1e7bc59df (diff)
downloadcpython-fe0a41aae425c61364b79c18ca8321dffed3ac40.zip
cpython-fe0a41aae425c61364b79c18ca8321dffed3ac40.tar.gz
cpython-fe0a41aae425c61364b79c18ca8321dffed3ac40.tar.bz2
Issue #23668: Adds support for os.truncate and os.ftruncate on Windows
Diffstat (limited to 'Doc/library/io.rst')
-rw-r--r--Doc/library/io.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index 634bf58..f009c65 100644
--- a/Doc/library/io.rst
+++ b/Doc/library/io.rst
@@ -339,8 +339,11 @@ I/O Base Classes
if *size* is not specified). The current stream position isn't changed.
This resizing can extend or reduce the current file size. In case of
extension, the contents of the new file area depend on the platform
- (on most systems, additional bytes are zero-filled, on Windows they're
- undetermined). The new file size is returned.
+ (on most systems, additional bytes are zero-filled). The new file size
+ is returned.
+
+ .. versionchanged:: 3.5
+ Windows will now zero-fill files when extending.
.. method:: writable()