diff options
author | Daniel Williams <dann0a@gmail.com> | 2024-05-21 16:23:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 16:23:50 (GMT) |
commit | 62a29be5bb01c2d0f72d8f9b1b5539816e65310c (patch) | |
tree | 8f71e749080238cf5fa067ed434caec15849ba2f /Lib/socket.py | |
parent | 0398d9339217aa0710c0de45a7e9b587136e7129 (diff) | |
download | cpython-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.py | 3 |
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"}: |