ID EN
Socket

makefile

Python 3.11

Return a file object associated with the socket. The exact returned type depends on the arguments given to makefile(). These arguments are interpreted the same way as by the built-in open() function, except the only supported mode values are 'r' (default), 'w' and 'b'.

Syntax

PYTHON
socket.makefile(mode='r', buffering=None, *, encoding=None, errors=None, newline=None)

See Also

file object makefile() open() makefile() socket.close() makefile() subprocess.Popen()