Python Sockets - chat client stdin
<p>This may sound simple. I'm creating a simple chat program in python using sockets (with select()). I'm having trouble with handling stdin and stdout. I want each client to be able to grab stdin messages and send them through the socket. However, i also grab printout messages (like print "socket connected") and i'm getting some weird behavior. How can i separate between prints and messages that are typed to the shell, to be sent through the socket ?</p>
