Close #10142: Support for SEEK_HOLE/SEEK_DATA

This commit is contained in:
Jesus Cea 2012-04-26 16:39:35 +02:00
parent 790a9b4c19
commit 2b47f0a23f
8 changed files with 60 additions and 12 deletions

View file

@ -291,6 +291,11 @@ I/O Base Classes
.. versionadded:: 3.1
The ``SEEK_*`` constants.
.. versionadded:: 3.3
Some operating systems could support additional values, like
:data:`os.SEEK_HOLE` or :data:`os.SEEK_DATA`. The valid values
for a file could depend on it being open in text or binary mode.
.. method:: seekable()
Return ``True`` if the stream supports random access. If ``False``,