I am trying to write a socket server. The server itself doesn\'t accomplish anything all that interesting. Right now my problem is that python is complaining about my arguments
You need to pass in three sequences of file descriptors as arguments to select, from the names you supply I think that [clients, signals]
might be some other construct (is clients a list of file descriptors?). In this case you could use clients+signals
as second argument to select
.
In other words: Each argument must be a flat sequence, no nesting is allowed.
I guess clients
is an array. Try read_client_sockets=[the_socket] + clients
instead.