Skip to content

Commit 77356f6

Browse files
hugovkcalestyo
andauthored
[3.11] gh-107924: re-order os.sendfile() flag documentation (#107926) (#109178)
Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Christoph Anton Mitterer <[email protected]>
1 parent 50e4143 commit 77356f6

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Doc/library/os.rst

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

15101510

1511-
.. function:: set_blocking(fd, blocking, /)
1512-
1513-
Set the blocking mode of the specified file descriptor. Set the
1514-
:data:`O_NONBLOCK` flag if blocking is ``False``, clear the flag otherwise.
1515-
1516-
See also :func:`get_blocking` and :meth:`socket.socket.setblocking`.
1517-
1518-
.. availability:: Unix.
1519-
1520-
The function is limited on Emscripten and WASI, see
1521-
:ref:`wasm-availability` for more information.
1522-
1523-
.. versionadded:: 3.5
1524-
1525-
15261511
.. data:: SF_NODISKIO
15271512
SF_MNOWAIT
15281513
SF_SYNC
@@ -1544,6 +1529,21 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
15441529
.. versionadded:: 3.11
15451530

15461531

1532+
.. function:: set_blocking(fd, blocking, /)
1533+
1534+
Set the blocking mode of the specified file descriptor. Set the
1535+
:data:`O_NONBLOCK` flag if blocking is ``False``, clear the flag otherwise.
1536+
1537+
See also :func:`get_blocking` and :meth:`socket.socket.setblocking`.
1538+
1539+
.. availability:: Unix.
1540+
1541+
The function is limited on Emscripten and WASI, see
1542+
:ref:`wasm-availability` for more information.
1543+
1544+
.. versionadded:: 3.5
1545+
1546+
15471547
.. function:: splice(src, dst, count, offset_src=None, offset_dst=None)
15481548

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

0 commit comments

Comments
 (0)