8000 gh-110383: Document `socket.makefile()` accepts combined modes by squeakyboots · Pull Request #119150 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-110383: Document socket.makefile() accepts combined modes #119150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Document socket.makefile() accepts combined modes
  • Loading branch information
squeakyboots authored May 18, 2024
commit fc7232914e522c016cf208720211c722bd51a2a7
3 changes: 2 additions & 1 deletion Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1589,7 +1589,8 @@ to sockets.
Return a :term:`file object` associated with the socket. The exact returned
type depends on the arguments given to :meth:`makefile`. These arguments are
interpreted the same way as by the built-in :func:`open` function, except
the only supported *mode* values are ``'r'`` (default), ``'w'`` and ``'b'``.
the only supported *mode* values are ``'r'`` (default), ``'w'``, ``'b'``, or
a combination of those.

The socket must be in blocking mode; it can have a timeout, but the file
object's internal buffer may end up in an inconsistent state if a timeout
Expand Down
0