summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorDaniel Williams <dann0a@gmail.com>2024-05-21 16:23:50 (GMT)
committerGitHub <noreply@github.com>2024-05-21 16:23:50 (GMT)
commit62a29be5bb01c2d0f72d8f9b1b5539816e65310c (patch)
tree8f71e749080238cf5fa067ed434caec15849ba2f /Lib/socket.py
parent0398d9339217aa0710c0de45a7e9b587136e7129 (diff)
downloadcpython-62a29be5bb01c2d0f72d8f9b1b5539816e65310c.zip
cpython-62a29be5bb01c2d0f72d8f9b1b5539816e65310c.tar.gz
cpython-62a29be5bb01c2d0f72d8f9b1b5539816e65310c.tar.bz2
gh-110383: Document `socket.makefile()` accepts combined modes (#119150)
The supported mode values are 'r', 'w', and 'b', or a combination of those.
Diffstat (limited to 'Lib/socket.py')
-rw-r--r--Lib/socket.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index 77986fc..524ce13 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -306,7 +306,8 @@ class socket(_socket.socket):
"""makefile(...) -> an I/O stream connected to the socket
The arguments are as for io.open() after the filename, except the only
- supported mode values are 'r' (default), 'w' and 'b'.
+ supported mode values are 'r' (default), 'w', 'b', or a combination of
+ those.
"""
# XXX refactor to share code?
if not set(mode) <= {"r", "w", "b"}: