Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f77c1d6 commit 872b79dCopy full SHA for 872b79d
1 file changed
Lib/socket.py
@@ -228,6 +228,13 @@ class SocketIO(io.RawIOBase):
228
the raw I/O interface on top of a socket object.
229
"""
230
231
+ # One might wonder why not let FileIO do the job instead. There are two
232
+ # main reasons why FileIO is not adapted:
233
+ # - it wouldn't work under Windows (where you can't used read() and
234
+ # write() on a socket handle)
235
+ # - it wouldn't work with socket timeouts (FileIO would ignore the
236
+ # timeout and consider the socket non-blocking)
237
+
238
# XXX More docs
239
240
def __init__(self, sock, mode):
0 commit comments