Suppose I have a socket. What is the difference between these two lines of code?
line 1:
os.read(some_socket.fileno(), 1024)
line 2:
some_socket.recv(1024)
...other than the fact that the first one doesn't work on Windows. In other words, can I substitute the second line for the first one? I've got a codebase that hasn't really been tested with Windows, and this is causing trouble.