@@ -634,18 +634,24 @@ correspond to Unix system calls applicable to sockets.
634634 is system-dependent (usually 5).
635635
636636
637- .. method :: socket.makefile(mode='r', buffering=None, *, encoding=None, errors=None, newline=None)
637+ .. method :: socket.makefile(mode='r', buffering=None, *, encoding=None, \
638+ errors=None, newline=None)
638639
639640 .. index :: single: I/O control; buffering
640641
641- Return a :term: `file object ` associated with the socket. The exact
642- returned type depends on the arguments given to :meth: `makefile `. These
643- arguments are interpreted the same way as by the built-in :func: `open `
644- function.
642+ Return a :term: `file object ` associated with the socket. The exact returned
643+ type depends on the arguments given to :meth: `makefile `. These arguments are
644+ interpreted the same way as by the built-in :func: `open ` function.
645645
646- Closing the file object won't close the socket unless there are no
647- remaining references to the socket. The socket must be in blocking mode
648- (it can not have a timeout).
646+ Closing the file object won't close the socket unless there are no remaining
647+ references to the socket. The socket must be in blocking mode (it can not
648+ have a timeout).
649+
650+ .. note ::
651+
652+ On Windows, the file-like object created by :meth: `makefile ` cannot be
653+ used where a file object with a file descriptor is expected, such as the
654+ stream arguments of :meth: `subprocess.Popen `.
649655
650656
651657.. method :: socket.recv(bufsize[, flags])
0 commit comments