summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-05-02 13:10:39 (GMT)
committerGitHub <noreply@github.com>2017-05-02 13:10:39 (GMT)
commit999707373630ce090300c3c542066f493b12faa0 (patch)
tree1085aacebf78a2a85280c6c9934ecfd315f13fcf /Misc
parent1dae7450c68bad498e57800387b24cb103c461fa (diff)
downloadcpython-999707373630ce090300c3c542066f493b12faa0.zip
cpython-999707373630ce090300c3c542066f493b12faa0.tar.gz
cpython-999707373630ce090300c3c542066f493b12faa0.tar.bz2
bpo-30228: FileIO seek() and tell() set seekable (#1384)
FileIO.seek() and FileIO.tell() method now set the internal seekable attribute to avoid one syscall on open() (in buffered or text mode). The seekable property is now also more reliable since its value is set correctly on memory allocation failure.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 2a86c34..118483f 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -317,6 +317,9 @@ Extension Modules
Library
-------
+- bpo-30228: The seek() and tell() methods of io.FileIO now set the internal
+ seekable attribute to avoid one syscall on open() (in buffered or text mode).
+
- bpo-30190: unittest's assertAlmostEqual and assertNotAlmostEqual provide a
better message in case of failure which includes the difference between
left and right arguments. (patch by Giampaolo Rodola')