Chris Angelico <ros...@gmail.com> writes: > fd_to_sock={sock.fileno():sock for sock in list_of_sockets} > You'd need to manually maintain that as sockets get created/destroyed, > though
Thanks, I was hoping to avoid that. I'll have to check how select.select manages to return sockets. Maybe it builds such a dict from the object list before it calls the system's select function, then maps the result back afterwards. Ugh. -- http://mail.python.org/mailman/listinfo/python-list