select() call and filedescriptor out of range in select error

James Mills prologic at
Thu Sep 16 07:51:38 CEST 2010

On Thu, Sep 16, 2010 at 2:49 PM, Ned Deily <nad at> wrote:
> If the problem is that the socket object in question no longer exists,
> you can protect your code there by enclosing the remove operation in a
> try block, like:

The question that remains to be seen however is:

Why does your list contain dirty data ? Your code has likely removed
the socket object from the list before, why is it attempting to remove
it again ?

I would consider you re-look at your code's logic rather than patch
up the code with a "band-aid-solution".


-- James Mills
-- "Problems are solved by method"

More information about the Python-list mailing list