r=select([f,s],[],[])[0][0].
Does this mean wait until the file pointed to by f AND s is ready for readiing or f OR s is ready for reading?
Asked
Active
Viewed 88 times
2

Lelouch Lamperouge
- 8,171
- 8
- 49
- 60
-
The answer is OR. As answered by lvh from #python, and I completely agree, it would be the same as blocking read from all the sockets sequentially – Lelouch Lamperouge Apr 24 '11 at 00:47
1 Answers
2
The latter, although both may be returned if they're both ready for reading.

Ignacio Vazquez-Abrams
- 776,304
- 153
- 1,341
- 1,358