Paul> It seems to me that the socket module itself should be rewritten
Paul> to use new style classes, so that socket.socket objects can extend
Paul> _socket.socket instead of wrapping them.
Paul> Am I missing something?
Probably not. The socket module could use some attention.
Just a slight rant, I think I can find a workaround.
I wanted to trace all the output being sent through a socket:
from socket import *
sock = socket()
socket.connect((host, post))
socket.send('hello over there\n') # I want to log the string
Sounds like a job for new style classes: