Python Error: io.UnsupportedOperation: fileno

前端 未结 2 1235
耶瑟儿~
耶瑟儿~ 2020-11-29 10:02

I am using a server and the client programs from this link: http://www.bogotobogo.com/python/python_network_programming_tcp_server_client_chat_server_chat_client_select.php<

2条回答
  •  忘掉有多难
    2020-11-29 10:35

    While the fileno() method works on normal IO objects (sys.stdout, sys.stderr, sys.stdin and socket.socket), the IDLE Python IDE changes your IO objects which breaks this.

    So... if you get this error, run the command from straight up Python instead.

提交回复
热议问题