[Python-checkins] [python/cpython] 999707: bpo-30228: FileIO seek() and tell() set seekable (...
GitHub
noreply at github.com
Tue May 2 09:10:41 EDT 2017
Branch: refs/heads/master
Home: https://github.com/python/cpython
Commit: 999707373630ce090300c3c542066f493b12faa0
https://github.com/python/cpython/commit/999707373630ce090300c3c542066f493b12faa0
Author: Victor Stinner <victor.stinner at gmail.com>
Date: 2017-05-02 (Tue, 02 May 2017)
Changed paths:
M Misc/NEWS
M Modules/_io/fileio.c
Log Message:
-----------
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.
More information about the Python-checkins
mailing list