mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Close #10142: Support for SEEK_HOLE/SEEK_DATA
This commit is contained in:
parent
790a9b4c19
commit
2b47f0a23f
8 changed files with 60 additions and 12 deletions
|
@ -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``,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue