Skip to content

Commit 1577f68

Browse files
committed
pythongh-107924: re-order os.sendfile() flag documentation
Signed-off-by: Christoph Anton Mitterer <[email protected]>
1 parent 2308cc5 commit 1577f68

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

Doc/library/os.rst

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,25 +1578,6 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
15781578
Parameters *out* and *in* was renamed to *out_fd* and *in_fd*.
15791579

15801580

1581-
.. function:: set_blocking(fd, blocking, /)
1582-
1583-
Set the blocking mode of the specified file descriptor. Set the
1584-
:data:`O_NONBLOCK` flag if blocking is ``False``, clear the flag otherwise.
1585-
1586-
See also :func:`get_blocking` and :meth:`socket.socket.setblocking`.
1587-
1588-
.. availability:: Unix, Windows.
1589-
1590-
The function is limited on Emscripten and WASI, see
1591-
:ref:`wasm-availability` for more information.
1592-
1593-
On Windows, this function is limited to pipes.
1594-
1595-
.. versionadded:: 3.5
1596-
1597-
.. versionchanged:: 3.12
1598-
Added support for pipes on Windows.
1599-
16001581
.. data:: SF_NODISKIO
16011582
SF_MNOWAIT
16021583
SF_SYNC
@@ -1608,6 +1589,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
16081589

16091590
.. versionadded:: 3.3
16101591

1592+
16111593
.. data:: SF_NOCACHE
16121594

16131595
Parameter to the :func:`sendfile` function, if the implementation supports
@@ -1618,6 +1600,26 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
16181600
.. versionadded:: 3.11
16191601

16201602

1603+
.. function:: set_blocking(fd, blocking, /)
1604+
1605+
Set the blocking mode of the specified file descriptor. Set the
1606+
:data:`O_NONBLOCK` flag if blocking is ``False``, clear the flag otherwise.
1607+
1608+
See also :func:`get_blocking` and :meth:`socket.socket.setblocking`.
1609+
1610+
.. availability:: Unix, Windows.
1611+
1612+
The function is limited on Emscripten and WASI, see
1613+
:ref:`wasm-availability` for more information.
1614+
1615+
On Windows, this function is limited to pipes.
1616+
1617+
.. versionadded:: 3.5
1618+
1619+
.. versionchanged:: 3.12
1620+
Added support for pipes on Windows.
1621+
1622+
16211623
.. function:: splice(src, dst, count, offset_src=None, offset_dst=None)
16221624

16231625
Transfer *count* bytes from file descriptor *src*, starting from offset

0 commit comments

Comments
 (0)