summaryrefslogtreecommitdiffstats
path: root/Doc
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
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')
-rw-r--r--Doc/library/io.rst7
-rw-r--r--Doc/library/os.rst8
2 files changed, 11 insertions, 4 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()
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index eb10db6..bd09937 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -805,8 +805,10 @@ as internal buffering of data.
most *length* bytes in size. As of Python 3.3, this is equivalent to
``os.truncate(fd, length)``.
- Availability: Unix.
+ Availability: Unix, Windows.
+ .. versionchanged:: 3.5
+ Added support for Windows
.. function:: get_blocking(fd)
@@ -2492,10 +2494,12 @@ features:
This function can support :ref:`specifying a file descriptor <path_fd>`.
- Availability: Unix.
+ Availability: Unix, Windows.
.. versionadded:: 3.3
+ .. versionchanged:: 3.5
+ Added support for Windows
.. function:: unlink(path, *, dir_fd=None)