[issue10142] Support for SEEK_HOLE/SEEK_DATA

Jesús Cea Avión report at bugs.python.org
Tue Nov 9 03:56:18 CET 2010


Jesús Cea Avión <jcea at jcea.es> added the comment:

This is far more complicated that expected, because I would like to modify "file.seek()" to be able to support these flags too. Analizing "Modules/_io/bufferedio.c:buffered_seek()", the logic is pretty convoluted and the ramifications are extensible.

Should I limit myself to "os.lseek()"/"os.read()"/"os.write()"?. This flags are obscure, but useful enough to be useful even with this limitation.

Fut I don't feel comfy with this partial support.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10142>
_______________________________________


More information about the Python-bugs-list mailing list