pythonlow-level-io

python.select, sending lists as arguments


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?


Solution

  • The latter, although both may be returned if they're both ready for reading.