diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-05-02 13:10:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-02 13:10:39 (GMT) |
commit | 999707373630ce090300c3c542066f493b12faa0 (patch) | |
tree | 1085aacebf78a2a85280c6c9934ecfd315f13fcf /Misc/NEWS | |
parent | 1dae7450c68bad498e57800387b24cb103c461fa (diff) | |
download | cpython-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/NEWS')
-rw-r--r-- | Misc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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') |