Skip to content

Commit 403ab13

Browse files
calestyohugovk
andauthored
pythongh-107924: re-order os.sendfile() flag documentation (python#107926)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent f2584ea commit 403ab13

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

Doc/library/os.rst

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

16201620

1621-
.. function:: set_blocking(fd, blocking, /)
1622-
1623-
Set the blocking mode of the specified file descriptor. Set the
1624-
:data:`O_NONBLOCK` flag if blocking is ``False``, clear the flag otherwise.
1625-
1626-
See also :func:`get_blocking` and :meth:`socket.socket.setblocking`.
1627-
1628-
.. availability:: Unix, Windows.
1629-
1630-
The function is limited on Emscripten and WASI, see
1631-
:ref:`wasm-availability` for more information.
1632-
1633-
On Windows, this function is limited to pipes.
1634-
1635-
.. versionadded:: 3.5
1636-
1637-
.. versionchanged:: 3.12
1638-
Added support for pipes on Windows.
1639-
16401621
.. data:: SF_NODISKIO
16411622
SF_MNOWAIT
16421623
SF_SYNC
@@ -1658,6 +1639,26 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
16581639
.. versionadded:: 3.11
16591640

16601641

1642+
.. function:: set_blocking(fd, blocking, /)
1643+
1644+
Set the blocking mode of the specified file descriptor. Set the
1645+
:data:`O_NONBLOCK` flag if blocking is ``False``, clear the flag otherwise.
1646+
1647+
See also :func:`get_blocking` and :meth:`socket.socket.setblocking`.
1648+
1649+
.. availability:: Unix, Windows.
1650+
1651+
The function is limited on Emscripten and WASI, see
1652+
:ref:`wasm-availability` for more information.
1653+
1654+
On Windows, this function is limited to pipes.
1655+
1656+
.. versionadded:: 3.5
1657+
1658+
.. versionchanged:: 3.12
1659+
Added support for pipes on Windows.
1660+
1661+
16611662
.. function:: splice(src, dst, count, offset_src=None, offset_dst=None)
16621663

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

0 commit comments

Comments
 (0)