[issue36047] socket file handle does not support stream write

Windson Yang report at bugs.python.org
Wed Feb 20 02:47:15 EST 2019


Windson Yang <wiwindson at outlook.com> added the comment:

>From the docs https://docs.python.org/3/library/socket.html#socket.socket.makefile, the default mode for makefile() is 'r' (only readable). In your example, just use S = s.makefile(mode='w') instead.

----------
nosy: +Windson Yang

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36047>
_______________________________________


More information about the Python-bugs-list mailing list