[issue10142] Support for SEEK_HOLE/SEEK_DATA
STINNER Victor
report at bugs.python.org
Tue Mar 20 23:24:58 CET 2012
STINNER Victor <victor.stinner at gmail.com> added the comment:
+ /* SEEK_SET and SEEK_CUR are special because we could seek inside the
+ buffer. Other whence values must be managed without this optimization.
+ Some Operating Systems can provide additional values, like
+ SEEK_HOLE/SEEK_DATA. */
+ if (((whence == 0) || (whence == 1)) && self->readable) {
Why not using SEEK_SET and SEEK_CUR instead of 0 and 1 here?
+ .. versionadded:: 3.2
This is now outdated, it should be 3.3.
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10142>
_______________________________________
More information about the Python-bugs-list
mailing list