commit | 999707373630ce090300c3c542066f493b12faa0 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue May 02 15:10:39 2017 +0200 |
committer | GitHub <noreply@github.com> | Tue May 02 15:10:39 2017 +0200 |
tree | 1085aacebf78a2a85280c6c9934ecfd315f13fcf | |
parent | 1dae7450c68bad498e57800387b24cb103c461fa [diff] |
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.