Windson Yang <wiwind...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue36047> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com