summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-01-27 21:48:46 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-01-27 21:48:46 (GMT)
commitca5a06aaa968ae767329f8afedbaf17fc337416f (patch)
tree1c0f8bfdd0469ce707d41b99371855f6f3f8ae91 /Misc
parentf3330144679453a66b9baf54963462d8cbd095f8 (diff)
downloadcpython-ca5a06aaa968ae767329f8afedbaf17fc337416f.zip
cpython-ca5a06aaa968ae767329f8afedbaf17fc337416f.tar.gz
cpython-ca5a06aaa968ae767329f8afedbaf17fc337416f.tar.bz2
Issue #6939: Fix file I/O objects in the `io` module to keep the original
file position when calling `truncate()`. It would previously change the file position to the given argument, which goes against the tradition of `ftruncate()` and other truncation APIs. Patch by Pascal Chambon.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index e2b4549..6c15fe6 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -53,6 +53,11 @@ Core and Builtins
Library
-------
+- Issue #6939: Fix file I/O objects in the `io` module to keep the original
+ file position when calling `truncate()`. It would previously change the
+ file position to the given argument, which goes against the tradition of
+ ftruncate() and other truncation APIs. Patch by Pascal Chambon.
+
- Issue #7792: Registering non-classes to ABCs raised an obscure error.
- Issue #7773: Fix an UnboundLocalError in platform.linux_distribution() when