From ace016eb59f6451bad6679bcb879300e1a996812 Mon Sep 17 00:00:00 2001 From: Damien-Chen Date: Thu, 1 Aug 2024 10:27:04 +0800 Subject: [PATCH 1/4] Adding socket module shutdown() constants description Modify some grammar Adding availability --- Doc/library/socket.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index b1e35e68b132e2..c9f0604620ac2f 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -704,6 +704,13 @@ Constants .. versionadded:: 3.12 +.. data:: SHUT_RD + SHUT_WR + SHUT_RDWR + + These constants are used by the :meth:`socket.shutdown` method of socket object. + + .. availability:: not WASI. Functions ^^^^^^^^^ From ca16eec604b69a7e6fb2990c10e1e6ae32143d8e Mon Sep 17 00:00:00 2001 From: Damien-Chen Date: Fri, 2 Aug 2024 16:06:03 +0800 Subject: [PATCH 2/4] Remove socket class name prefix in shutdown method --- Doc/library/socket.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index c9f0604620ac2f..152a3a12ecf5d1 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -708,7 +708,7 @@ Constants SHUT_WR SHUT_RDWR - These constants are used by the :meth:`socket.shutdown` method of socket object. + These constants are used by the :meth:`shutdown` method of socket object. .. availability:: not WASI. From fa3dab59496925a37273bee5c3defdba617bbc72 Mon Sep 17 00:00:00 2001 From: Damien-Chen Date: Fri, 2 Aug 2024 16:09:41 +0800 Subject: [PATCH 3/4] Fix grammar --- Doc/library/socket.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 152a3a12ecf5d1..8d242123076f7c 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -708,7 +708,7 @@ Constants SHUT_WR SHUT_RDWR - These constants are used by the :meth:`shutdown` method of socket object. + These constants are used by the :meth:`shutdown` method of socket objects. .. availability:: not WASI. From 4932760ff8ad26369e6c9df3febeff8668f93338 Mon Sep 17 00:00:00 2001 From: Damien-Chen Date: Fri, 2 Aug 2024 16:49:15 +0800 Subject: [PATCH 4/4] Fix hyperlink of shutdown --- Doc/library/socket.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 8d242123076f7c..253a120e5c0f51 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -708,7 +708,7 @@ Constants SHUT_WR SHUT_RDWR - These constants are used by the :meth:`shutdown` method of socket objects. + These constants are used by the :meth:`~socket.socket.shutdown` method of socket objects. .. availability:: not WASI.